Kinark / Materialize-stepper

A little plugin that implements a stepper to Materializecss framework.
https://kinark.github.io/Materialize-stepper/
MIT License
227 stars 60 forks source link

Facing issue while adding a step #113

Open MWaris97 opened 1 year ago

MWaris97 commented 1 year ago

I am trying to add a removed step but unable to do so, I am getting the following error. Please help me

Uncaught TypeError: Illegal invocation at MStepper.activateStep (mstepper.js:451:41) at clickPenaltyVariable (BondCreationPage.js:365:44) at HTMLButtonElement.onclick (Create:466:117)

Here is how I am doing it

Inside one function removedPenaltyStep = stepperInstace.deactivateStep(document.getElementById("removableStep_1_9_2"));

Inside another function stepperInstace.activateStep(removedPenaltyStep)

removedPenaltyStep is global