aboutsummaryrefslogtreecommitdiff
path: root/js/tests/unit/dom/selector-engine.spec.js
AgeCommit message (Collapse)AuthorFilesLines
2021-07-27Add shift-tab keyboard support for dialogs (modal & Offcanvas components) ↵Ryan Berliner1-0/+82
(#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]>
2020-12-07Remove `SelectorEngine.matches()`. (#32339)XhmikosR1-8/+0
It's basically unused.
2020-03-25fix: remove make array util function (#30430)Johann-S1-6/+5
2020-03-23Use next dropdown menu instead of first of the parentMartijn Cuppens1-0/+39
2020-03-09`prev()` function fails when non-element nodes are present (#30117)Martijn Cuppens1-0/+15
The `prev()` function doesn't take nodes other than elements into account. Also we could simplify things a lot using the `previousElementSibling` property. This property isn't fully supported in IE, it only works for elements, but since the `element` variable is an element, we can safely use it here. I've also added an additional test. I don't think we had this issue in v4, since we relied on jQuery back then. Ref. https://developer.mozilla.org/en-US/docs/Web/API/NonDocumentTypeChildNode/nextElementSibling
2019-10-09Rename "js/tests/units" to "js/tests/unit". (#29503)XhmikosR1-0/+115