Modal close button error


Topic: Modal close button error

pawled pro premium asked 4 months ago

Take a look at this: modal_close_button_error

This is yours example. What's wrong?


Mikołaj Smoleński staff commented 4 months ago

Where exactly do we have such example? The correct syntax for modal's close button is:

    <button
      type="button"
      class="btn-close"
      data-dismiss="modal"
      aria-label="Close"
    ></button>

Best regards


pawled pro premium commented 4 months ago

I am using this one. Doesn't work.


Mikołaj Smoleński staff commented 4 months ago

Close button was added in the 2.0.0 version. I suppose You have older MDB UI KIT version in Your project, that's why it's not working. Best regards


pawled pro premium commented 4 months ago

I downloaded the newest and it is working now. Thanks. Previously I was using v2 too.


Please insert min. 20 characters.
Status

Resolved

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB 5
  • MDB Version: 2.2.1
  • Device: Any
  • Browser: Any
  • OS: Any
  • Provided sample code: No
  • Provided link: No
Tags