Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: MDBStepper how to disable default behaviours

Mazzilli priority asked 3 years 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 3 years ago

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


Mazzilli priority commented 3 years 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



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



Please insert min. 20 characters.

FREE CONSULTATION

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

Status

Answered

Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB React
  • MDB Version: MDB5 1.0.0-beta6
  • Device: pc
  • Browser: chrome
  • OS: win
  • Provided sample code: No
  • Provided link: No