]> git.ipfire.org Git - thirdparty/bootstrap.git/commit
Dropdown — Emit events on the `.dropdown-toggle` button (#32625)
authorRohit Sharma <rohit2sharma95@gmail.com>
Wed, 3 Feb 2021 19:51:19 +0000 (01:21 +0530)
committerGitHub <noreply@github.com>
Wed, 3 Feb 2021 19:51:19 +0000 (21:51 +0200)
commit3770b7b9e3fd92b164a58caef05a4d9cd650a86a
treee77ca96026e5957f68939b95709731ddb4d22c5f
parent02d103be9155514824f74edf17db92ed407b92f3
Dropdown — Emit events on the `.dropdown-toggle` button (#32625)

* Emit events on the dropdown button

Emit the events on `.dropdown-toggle` button and then bubble up

* Add migration note for events

* Update the docs for events

* Add unit test to check the event bubbling

Co-authored-by: XhmikosR <xhmikosr@gmail.com>
js/src/dropdown.js
js/tests/unit/dropdown.spec.js
site/content/docs/5.0/components/dropdowns.md
site/content/docs/5.0/migration.md