aboutsummaryrefslogtreecommitdiff
path: root/js/src/util/backdrop.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-1/+1
* 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-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-3/+3
2022-11-21Bump version to 5.2.3XhmikosR1-1/+1
2022-10-26Use explicit imports in our javascript source files (#36854)GeoSot1-3/+3
2022-10-03Release v5.2.2 (#37236)XhmikosR1-1/+1
* Bump version to v5.2.2 * Dist
2022-09-07Release v5.2.1 (#37098)XhmikosR1-1/+1
* Bump version to v5.2.1. * Dist
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-01-29backdrop.js: cache `_getElement` callsXhmikosR1-4/+6
2021-12-10Extract Component config functionality to a separate class (#33872)GeoSot1-9/+18
Co-authored-by: XhmikosR <[email protected]>
2021-10-13JS: minor refactoring (#35183)XhmikosR1-16/+24
* 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-09Bump version to 5.1.3.XhmikosR1-1/+1
2021-10-05Release v5.1.2 (#35114)XhmikosR1-1/+1
2021-09-08Remove remaining "master" branch references (#34932)Julien Déramond1-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-30Enable a few eslint-config-xo rules (#34620)XhmikosR1-1/+1
* unicorn/prefer-dom-node-append * unicorn/prefer-dom-node-remove
2021-06-25Variablize backdrop for modal and offcanvasMark Otto1-2/+3
2021-06-22Release v5.0.2 (#34276)v5.0.2XhmikosR1-1/+1
* Bump version to v5.0.2. * Dist
2021-06-03Fix handling of transitionend events dispatched by nested elements(#33845)alpadev1-9/+2
Fix handling of transitionend events dispatched by nested elements Properly handle events from nested elements Change `emulateTransitionEnd` to `executeAfterTransition` &&
2021-05-31Changing Backdrop rootElement to default to a string (#34092)Ryan Weaver1-4/+5
The current config can cause the "body" to become stale. Specifically, if the entire body element is swapped out for a new body element, then the backdrop will continue to append itself to the original body element, since it's stored in memory as a reference on this object. This also no longer allows an explicit null to be passed to Backdrop's rootElement This still accomplishes the laziness of "not finding the rootElement until the Backdrop is created" to avoid problems of the JavaScript being included inside <head> (so, before body is available).
2021-05-25Change `element.parentNode.removeChild(element)` to `element.remove()` (#34071)GeoSot1-5/+1
2021-05-22Fix bug where backdrop calls method on null if it is already removed from ↵Ryan Weaver1-1/+5
the body (#34014) Co-authored-by: Rohit Sharma <[email protected]>
2021-05-13Release v5.0.1 (#33972)v5.0.1XhmikosR1-1/+1
* Bump version to 5.0.1. * Dist
2021-05-10Fix backdrop `rootElement` not initialized in Modal (#33853)Nagarjun Bodduna1-0/+2
* Initialize default value of rootElement before using * Remove redundant test | put rootElement tests together Co-authored-by: GeoSot <[email protected]>
2021-05-05Release v5.0.0 (#33647)v5.0.0XhmikosR1-1/+1
* Bump version to 5.0.0 * Fix npm tag * Dist
2021-04-19Use the backdrop util in offcanvas, enforcing consistency (#33545)GeoSot1-2/+12
* respect /share modal's backdrop functionality, keeping consistency * listen click events over backdrop (only) and trigger `hide()` without add/remove event tricks * achieve to hide foreign open offcanvas instances without glitches `if (allReadyOpen && allReadyOpen !== target)`, in case another is going to be open, when user clicks on trigger button
2021-04-14Decouple BackDrop from modal (#32439)GeoSot1-0/+123
* Create backdrop.js util * revert breaking changes remove PromiseTimout usage revert class name * one more test | change bundlewatch.config * add config obj to backdrop helper | tests for rootElement | use transitionend helper * Minor tweaks — Renaming Co-authored-by: Rohit Sharma <[email protected]>