Skip to content

Commit

Permalink
Omit getting data-attributes from toggle element
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoSot committed Apr 6, 2021
1 parent 42276b1 commit 0801f13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/modal.js
Expand Up @@ -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)
})
Expand Down

0 comments on commit 0801f13

Please sign in to comment.