thednp / bootstrap.native

Bootstrap components build with Typescript
http://thednp.github.io/bootstrap.native/
MIT License
1.7k stars 177 forks source link

modal backdrop fails to appear after the first time if modal has no fade #439

Closed lekoala closed 2 years ago

lekoala commented 2 years ago

This is due to this line in the constructor

self.hasFade = hasClass(element, fadeClass);

It targets the modal. hasFade is then later used to check if the backdrop should appear again, but it's not related.

in order to reproduce, simply target a modal without the fade class. The fade effect should not affect the backdrop.

thednp commented 2 years ago

Interesting find.