aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dropdown.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2021-02-16Add tests for `DATA_KEY` (#33090)GeoSot1-0/+6
Co-authored-by: XhmikosR <[email protected]>
2021-02-12Fix event handler removal in dropdown/carousel dispose (#33000)Kyle Tsang1-0/+5
* Fix event handler removal in carousel dispose * Fix event handler removal in dropdown dispose * Test event handlers in scrollspy dispose * Test event handlers in toast dispose * Test event handlers in tooltip dispose Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Rohit Sharma <[email protected]>
2021-02-09Add function type for `popperConfig` option (#32882)Rohit Sharma1-0/+22
* Add function type for `popperConfig` option * Update .bundlewatch.config.json * copy edits Co-authored-by: XhmikosR <[email protected]> Co-authored-by: Mark Otto <[email protected]>
2021-02-09Remove .dropdown-menu[style] reset and adjust .dropdown-menu-* modifiersMark Otto1-1/+59
- Removes the &[style] selector that was used for resetting Popper styles - Separate Popper-based alignment from static alignment with `data-bs-popover` attribute that separates the --bs-position and custom right/left properties Co-Authored-By: Rohit Sharma <[email protected]>
2021-02-03Fix dropdown keys to open menu (#32750)Siju Samson1-0/+48
Co-authored-by: XhmikosR <[email protected]>
2021-02-03Dropdown — Emit events on the `.dropdown-toggle` button (#32625)Rohit Sharma1-103/+99
* 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 <[email protected]>
2021-01-28Restore offset option for dropdown componentjoke2k1-0/+48
2021-01-13Throw a `TypeError` instead of the generic `Error` (#32585)Rohit Sharma1-6/+4
* Change from Error to TypeError * Convert the `NAME` to upper case to make the consistency in the error message * Update the remaining tests to be stricter Co-authored-by: XhmikosR <[email protected]>
2020-12-21Support Popper virtual elements (#32376)Nils K1-0/+52
Adds the ability to use objects implementing the virtual element interface as the value for the reference option of a dropdown config. Co-authored-by: XhmikosR <[email protected]>
2020-12-06Update to popper.js v2.xJohann-S1-93/+2
2020-12-04feat(RTL): implement RTLGaël Poupard1-10/+10
Using RTLCSS directives, renaming things to use logical names and following best practices.
2020-11-29Switch to Jasmine's `toBeInstanceOf` matcherXhmikosR1-1/+1
2020-11-29create a base componentJohann-S1-0/+1
2020-11-21Be consistent with Popper's name. (#32224)XhmikosR1-7/+7
The npm package is named "popper.js" but the project is named "Popper", so use the latter consistently.
2020-11-14Add `bs` in data attributesRohit Sharma1-106/+106
- Add `bs` in data APIs everywhere - Update unit tests
2020-11-02tests: tweak Jasmine usage (#32046)XhmikosR1-2/+2
* jasmine/expect-matcher * jasmine/prefer-jasmine-matcher Found with `eslint-plugin-jasmine`
2020-05-06tests: streamline HTML end tags (#30648)XhmikosR1-4/+4
2020-04-24Remove caret element (#30633)Tanguy Krotoff1-1/+1
2020-04-17Fix crash when pressing ArrowUp the first timeTanguy Krotoff1-0/+28
2020-04-17Replace event.which with event.key and event.buttonTanguy Krotoff1-56/+52
2020-03-23Use next dropdown menu instead of first of the parentMartijn Cuppens1-27/+27
2020-02-01tests: Remove button `href`s (#30119)Martijn Cuppens1-50/+50
2019-10-17Skip hidden dropdowns while focusing (#29523)Jeremy Jackson1-0/+37
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+1564