aboutsummaryrefslogtreecommitdiff
path: root/js/src/modal.js
AgeCommit message (Collapse)AuthorFilesLines
2024-02-06Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 (#39651)dependabot[bot]1-1/+3
* Build(deps-dev): Bump eslint-config-xo from 0.43.1 to 0.44.0 Bumps [eslint-config-xo](https://github.com/xojs/eslint-config-xo) from 0.43.1 to 0.44.0. - [Release notes](https://github.com/xojs/eslint-config-xo/releases) - [Commits](https://github.com/xojs/eslint-config-xo/compare/v0.43.1...v0.44.0) --- updated-dependencies: - dependency-name: eslint-config-xo dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update .eslintrc.json * Update .eslintrc.json * autofix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: XhmikosR <[email protected]>
2023-03-29Tweak and re-organize ESLint config (#38369)XhmikosR1-4/+4
* 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-29Modal: drop loop (#38368)XhmikosR1-3/+3
We only have two elements to iterate over so it doesn't make a lot of sense to use a loop here
2023-03-22Remove version comment from JavaScript src files (#38294)GeoSot1-1/+1
2023-02-11Unify `offcanvas` `keydown` event logic with `modal` (#38025)Roni Diwan1-1/+0
2022-12-24Release v5.3.0-alpha1 (#37661)XhmikosR1-1/+1
* 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-9/+9
2022-11-21Bump version to 5.2.3XhmikosR1-1/+1
2022-11-06Move `getElementFromSelector` & `getSelectorFromElement` to SelectorEngine ↵GeoSot1-2/+2
(#36027) * Move `getElementFromSelector` & getSelectorFromElement` inside selector-engine.js, in order to use SelectorEngine methods, avoiding raw querySelector usage * add `getMultipleElementsFromSelector` helper Co-authored-by: Julien Déramond <[email protected]>
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot1-8/+8
2022-10-03Release v5.2.2 (#37236)XhmikosR1-1/+1
* Bump version to v5.2.2 * Dist
2022-09-15Fix modal event listeners (#37128)Jérémie Broutier1-2/+2
* Fix modal event listeners (#37126) Co-authored-by: GeoSot <[email protected]>
2022-09-07Release v5.2.1 (#37098)XhmikosR1-1/+1
* Bump version to v5.2.1. * Dist
2022-09-07Fix modal event-listeners during dismiss click (#36863)GeoSot1-12/+16
ref: #36855
2022-07-19Release v5.2.0 (#36768)XhmikosR1-1/+1
* Bump version to 5.2.0 * Dist * Update masthead.html
2022-06-21fix: change dismiss handler, listening to key down, instead of click (#36401)GeoSot1-2/+2
2022-06-01Re-ordering js default objectslouismaxime.piton1-4/+4
2022-05-13Prepare v5.2.0-beta1Mark Otto1-1/+1
2022-05-12Revert backdrop utilization, handling clicks over modal (#36324)GeoSot1-15/+18
* refactor(Modal.js): stop using backdrop class to handle clicks over modal * Revert #35554 and backdrop callback usage Explanation: In order to bypass `.modal`, was applied a css rule `pointer-events:none` which caused the side effect, and user couldn't scroll "long content modals" * Update .bundlewatch.config.json Co-authored-by: Mark Otto <[email protected]>
2022-03-01Modal: refactor listeners to reduce some code noise (#35902)GeoSot1-21/+8
2022-01-30Modal: handle click event from backdrop callbackGeoSot1-23/+16
2022-01-29Rename variablesXhmikosR1-3/+3
2022-01-29Remove a few unneeded variablesXhmikosR1-8/+7
2021-12-18Fix typo in comment (#35564)Phil E. Taylor1-1/+1
s/moddal/modal
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot1-21/+6
Co-authored-by: XhmikosR <[email protected]>
2021-11-25Change adjustDialog's if conditions to improve readabilityGeoSot1-4/+6
2021-11-25Respect modal's initial overflowYGeoSot1-7/+5
2021-11-25Remove some uncovered code that seems to be unusedGeoSot1-19/+0
2021-11-25Change check for dynamic modalGeoSot1-2/+2
2021-11-25Tweak methodsGeoSot1-8/+8
Name them to be more descriptive and have agnostic functionality
2021-11-25Some refactoring on modal, to improve readability and generic functionalityGeoSot1-30/+30
2021-10-13JS: minor refactoring (#35183)XhmikosR1-30/+17
* 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-05Enable `unicorn/no-array-for-each` ruleXhmikosR1-2/+3
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-10Fix modal when is triggered by `bs-toggle`, to hide other open instances ↵GeoSot1-0/+7
(#34701)
2021-08-04Prepare v5.1.0. (#34674)v5.1.0XhmikosR1-1/+1
2021-07-30Enable a few eslint-config-xo rules (#34620)XhmikosR1-1/+1
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-07-28Use a streamlined way to trigger component dismiss (#34170)GeoSot1-13/+3
* use a streamlined way to trigger component dismiss * add documentation Co-authored-by: XhmikosR <[email protected]>
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner1-25/+11
(#33865) * consolidate dialog focus trap logic * add shift-tab support to focustrap * remove redundant null check of trap element Co-authored-by: GeoSot <[email protected]> * remove area support forom focusableChildren * fix no expectations warning in focustrap tests Co-authored-by: GeoSot <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-07-19modal: change `data-dismiss` so that it can be outside of a modal using ↵GeoSot1-2/+8
`bs-target` (#33403) * change data-dismiss, so can be outside modal, using a bs-target * Update site/content/docs/5.0/components/modal.md Co-authored-by: Gaël Poupard <[email protected]>
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-1/+1
* Bump version to v5.0.2. * Dist
2021-06-06Refactor scrollbar.js to be used as a Class (#33947)GeoSot1-4/+5
2021-06-03Add `getOrCreateInstance` method in base-component (#33276)GeoSot1-3/+3
Co-authored-by: Rohit Sharma <[email protected]> Co-authored-by: XhmikosR <[email protected]>
2021-06-03Fix handling of transitionend events dispatched by nested elements(#33845)alpadev1-15/+16
Fix handling of transitionend events dispatched by nested elements Properly handle events from nested elements Change `emulateTransitionEnd` to `executeAfterTransition` &&
2021-05-24Fix prevented show event disables modals with fade class from being ↵alpadev1-5/+5
displayed again (#34085) Fix modal, in case is faded, a prevented show event can cause show method to not be executed again.
2021-05-18Reset inside a Dialog does not work if `data-dismiss="modal"` is set (#33928)GeoSot1-1/+1
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-1/+1
* Bump version to 5.0.1. * Dist