Topic: Hide.mdb.Model using preventDefault not work

leejoo71 free asked 2 years ago


Expected behavior on hide.mdb.modal event, I want to unhide model when click close button by using preventDefault.

Actual behavior it isn't work with preventDefault when event fired

Resources (screenshots, code snippets etc.) https://mdbootstrap.com/snippets/standard/leejoo71/3650557#js-tab-view


leejoo71 free answered 2 years ago


I was fixed by use hide.bs.modal


Michał Duszak staff answered 2 years ago


If you don't want user to use a certain button, simply add disabled attribute to the button element.

https://mdbootstrap.com/snippets/standard/m-duszak/3651464#js-tab-view



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: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: Yes