Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 317c2cd

Browse files
GeoSotXhmikosR
authored andcommitted
Omit getting data-attributes from toggle element
1 parent 752b001 commit 317c2cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/src/modal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (
550550
})
551551
})
552552

553-
const data = Modal.getInstance(target) || new Modal(target, Manipulator.getDataAttributes(this))
553+
const data = Modal.getInstance(target) || new Modal(target)
554554

555555
data.toggle(this)
556556
})

0 commit comments

Comments
 (0)