Skip to content

Commit bb96a5a

Browse files
committed
refactor: update selectors
1 parent f5499a8 commit bb96a5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/util/component-functions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const enableDismissTrigger = (component, method = 'hide') => {
1212
const clickEvent = `click.dismiss${component.EVENT_KEY}`
1313
const name = component.NAME
1414

15-
EventHandler.on(document, clickEvent, `[data-bs-dismiss="${name}"]`, function (event) {
15+
EventHandler.on(document, clickEvent, `[data-coreui-dismiss="${name}"]`, function (event) {
1616
if (['A', 'AREA'].includes(this.tagName)) {
1717
event.preventDefault()
1818
}

0 commit comments

Comments
 (0)