aboutsummaryrefslogtreecommitdiff
path: root/js/src/dropdown.js
AgeCommit message (Collapse)AuthorFilesLines
2024-07-19Fix `this` reference for JavaScript functions (#38725)Nathan Sarang-Walters1-1/+1
2024-03-06Fix various redirectsXhmikosR1-1/+1
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-7/+7
* Tweak and re-organize ESLint config * merge individual configs to the root config * enable more eslint-plugin-import rules * lint markdown files * Lint
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot1-1/+1
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR1-3/+3
* Bump version to 5.3.0-alpha1 * Dist * Add docs versions updates * Update note in homepage hero Co-authored-by: Mark Otto <[email protected]>
2022-11-22Merge branch 'main' into prepare-523XhmikosR1-6/+7
2022-11-21Bump version to 5.2.3XhmikosR1-1/+1
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot1-5/+5
2022-10-07Boost `execute` function, being able to handle arguments (#36652)GeoSot1-1/+2
2022-10-03Release v5.2.2 (#37236)XhmikosR1-1/+1
* Bump version to v5.2.2 * Dist
2022-09-27Dropdown: fix case with invalid markup (#37190)GeoSot1-2/+9
This fixes a backward incompatible change in v5.2.1 where `.drodown-toggle` isn't present in the markup.
2022-09-07Release v5.2.1 (#37098)XhmikosR1-1/+1
* Bump version to v5.2.1. * Dist
2022-09-02fix(dropdowns): Fix multiple dropdowns when they are inside the same tag ↵Louis-Maxime Piton1-2/+4
(#37011)
2022-07-19Release v5.2.0 (#36768)XhmikosR1-1/+1
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-06-01Re-ordering js default objectslouismaxime.piton1-6/+6
2022-05-13Prepare v5.2.0-beta1Mark Otto1-1/+1
2022-04-13Update dropdown.jsGeoSot1-12/+9
minor refactoring
2022-03-08Fix dropdownslouismaxime.piton1-2/+18
2022-03-01Dropdown: Simplify dataKeyApiHandler (#35870)GeoSot1-39/+14
* Dropdown.js: Remove duplicated check for `Not Shown` instance * Dropdown.js: Rearrange `dataApiKeydownHandler` checks * Dropdown: do some fixup inside `dataApiKeydownHandler` * Update dropdown.js Co-authored-by: XhmikosR <[email protected]>
2022-02-28Add centered dropdown and dropup optionsMark Otto1-0/+12
2022-02-19Dropdown: use a better selector to avoid triggering click if button is ↵GeoSot1-5/+1
disabled (#35866)
2022-02-19Dropdown: use a combined selector to filter foreign not shown instances ↵GeoSot1-6/+3
iteration (#35766)
2022-02-01Dropdown: use destructured variables in `dataApyKeydownHandler`GeoSot1-6/+7
2022-02-01Dropdown: dropdown doesn't document `data-bs-target` option & `parentNode` ↵GeoSot1-2/+1
is ALWAYS the wrapper for toggle & menu
2022-02-01Dropdown: merge instance identification in `dataApiKeydownHandler`GeoSot1-1/+1
As we use the `dataApiKeydownHandler` only for events that are triggered on `[data-bs-toggle="dropdown"]` or on `.dropdown-menu`, we can ensure that their `parentNode` will ALWAYS be the `.dropdown` wrapper
2022-01-30Dropdown: use only one check for shown stateGeoSot1-4/+4
2022-01-30Dropdown: get dropdown's parent in one placeGeoSot1-12/+7
2022-01-29dropdown: Move constantXhmikosR1-4/+2
2022-01-29Rename variablesXhmikosR1-6/+6
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot1-11/+3
Co-authored-by: XhmikosR <[email protected]>
2021-12-09Dropdown: fix toggle focus after dropdown is hidden using the `ESC` button ↵GeoSot1-0/+1
(#35500)
2021-12-01Dropdown: clearMenus is always an event callbackGeoSot1-18/+16
2021-12-01Dropdown: Clean moreGeoSot1-4/+3
2021-12-01Dropdown: rename varsGeoSot1-6/+8
2021-12-01Dropdown: Remove redundant `Space` checkGeoSot1-14/+4
2021-12-01Dropdown: Deduplicate complex checkGeoSot1-7/+14
2021-12-01Dropdown: Remove redundant check since the `show` method already does itGeoSot1-4/+1
2021-12-01Dropdown: Change constant to the way we use itGeoSot1-2/+2
2021-12-01Dropdown: Merge `display='static'` & `isNavbar` functionality activating ↵GeoSot1-14/+5
static popper with no styles attached
2021-12-01Dropdown: Remove static method used onceGeoSot1-5/+1
2021-10-13JS: minor refactoring (#35183)XhmikosR1-16/+2
* add missing comments * shorten block comments * reorder constants * reorder public/private methods * sort exports alphabetically in util/index.js * fix a couple of typos
2021-10-09Merge remote-tracking branch 'remotes/origin/v513'XhmikosR1-1/+1
2021-10-09Bump version to 5.1.3.XhmikosR1-1/+1
2021-10-05Fix a `unicorn/no-array-callback-reference` issueXhmikosR1-1/+1
2021-10-05Enable `unicorn/no-array-for-each` ruleXhmikosR1-6/+7
2021-10-05Enable `unicorn/no-for-loop` ruleXhmikosR1-2/+2
2021-10-05Release v5.1.2 (#35114)XhmikosR1-1/+1
2021-09-07Release v5.1.1 (#34869)v5.1.1XhmikosR1-1/+1
* Prepare v5.1.1. * Dist
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-07-22make `dataApiKeydownHandler` to handle specific instance, avoiding extra ↵GeoSot1-5/+5
manipulations