MDBStepper how to disable default behaviours

Topic: MDBStepper how to disable default behaviours

Mazzilli pro premium priority asked 11 months ago

Expected behavior I'm looking for a solution to completely disable the click behaviour. I prefer to control stepper behaviour by myself, using react and redux state. Following API guide I can build control buttons and change step using react, but if user click directly the step, this will change.

Is there any way to disable the click or to handle the onClick event when user click one step?

Thanks, Luca

Wojciech Staniszewski staff commented 11 months ago

If I understand, You want to disable the onClick event on .stepper-head elements?

Mazzilli pro premium priority commented 11 months ago

Yes that's right, I want to manage the step change from other external components (for example MDBBtn) and inhibit the click directly on the steps

Wojciech Staniszewski staff answered 11 months ago

Currently, this is not possible, but we will add this feature in the next releases. Keep coding!

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue
  • User: Pro
  • Premium support: No
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: pc
  • Browser: chrome
  • OS: win
  • Provided sample code: No
  • Provided link: No