0
0
mirror of https://github.com/twbs/bootstrap.git synced 2025-01-19 11:52:21 +01:00

Omit getting data-attributes from toggle element

This commit is contained in:
GeoSot 2021-03-05 22:06:18 +02:00 committed by XhmikosR
parent 752b001b0a
commit 317c2cd08e

View File

@ -550,7 +550,7 @@ EventHandler.on(document, EVENT_CLICK_DATA_API, SELECTOR_DATA_TOGGLE, function (
}) })
}) })
const data = Modal.getInstance(target) || new Modal(target, Manipulator.getDataAttributes(this)) const data = Modal.getInstance(target) || new Modal(target)
data.toggle(this) data.toggle(this)
}) })