Search code examples
reactjsmaterial-design-lite

MDL and ReactJs : Event lost after componentHandler.upgradeDom()


I use React and when componentHandler.upgradeDom() is called all registred events on elements that are ugraded are lost.

I call componentHandler.upgradeDom() manually on componentDidUpdate.

To avoid this I use react-native-listener or I register the event after calling componentHandler.upgradeDom().

Any better solution ?


Solution

  • With the last version of material design lite (1.0.6) there is no losing of events when componentHandler.upgradeDom() is called.