You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Bootstrap docs indicated that "When using a .close button, it must be the first child of the .alert-dismissible ...".
But actually, the real target selector for the event is .alert.
It seems to me more logical to change the selector in the file alert.js at line number 39 to: $parent = $this.closest('.alert-dismissible')
Thus the .alert class unbinds from JavaScript and allows you to use dismissible alerts without must-have styles from the class .alert. Use only class .alert-dismissible, as described in the documentation.
The text was updated successfully, but these errors were encountered:
That'd be something for v4 since all .alert-dismissible does is adjust the positioning and color of the .close button slightly so some people just leave it out. I'll make a note though.
The Bootstrap docs indicated that "When using a .close button, it must be the first child of the .alert-dismissible ...".
But actually, the real target selector for the event is .alert.
It seems to me more logical to change the selector in the file alert.js at line number 39 to:
$parent = $this.closest('.alert-dismissible')
Thus the .alert class unbinds from JavaScript and allows you to use dismissible alerts without must-have styles from the class .alert. Use only class .alert-dismissible, as described in the documentation.
The text was updated successfully, but these errors were encountered: