You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know this is outside of the scope of this project currently, but I think the Stepper component is a big value add, and making it work with meteor-mdl seems pretty straightforward.
When I add steps dynamically, I need to re-upgrade the stepper. I tried using componentHandler.upgradeAllRegistered(); as well as componentHandler.upgradeDom(); and also the MDl versions of those functions. No dice.
What did work was componentHandler.downgradeElements(document.querySelector('.mdl-stepper'));, which seems to trigger the listener for autoupgrades in meteor-mdl.
I ended up with this attached to the click handler that inserts new steps:
I know this is outside of the scope of this project currently, but I think the Stepper component is a big value add, and making it work with meteor-mdl seems pretty straightforward.
I'm working with https://github.com/ahlechandre/mdl-stepper, and have things working well with auto-upgraded stepper components.
However, I'm doing something like this:
When I add steps dynamically, I need to re-upgrade the stepper. I tried using
componentHandler.upgradeAllRegistered();
as well ascomponentHandler.upgradeDom();
and also theMDl
versions of those functions. No dice.What did work was
componentHandler.downgradeElements(document.querySelector('.mdl-stepper'));
, which seems to trigger the listener for autoupgrades in meteor-mdl.I ended up with this attached to the click handler that inserts new steps:
Just wondering if there is a better way to do this?
The text was updated successfully, but these errors were encountered: