tethys.backend/resources/js/utils/focusTrap.js
Arno Kaimbacher 87e9314b00
Some checks failed
CI Pipeline / japa-tests (push) Failing after 51s
- added NcModal.vue, NcActions.vue, NcButton.vue, FirstrunWizard.vue, Card.vue, Page0.vue, Page1.vue, Page2.vue, Page3.vue and some icons
- added lime color inside tailwind.config.js
- added some utilities scripts needed for components
- npm updates
- changed postcss.config.js for nesting css styles
- added about function to NavBar.vue
2023-12-21 09:30:21 +01:00

11 lines
285 B
JavaScript

/**
* Return the default global focus trap stack
*
* @return {import('focus-trap').FocusTrap[]}
*/
export const getTrapStack = function() {
// Create global stack if undefined
Object.assign(window, { _nc_focus_trap: window._nc_focus_trap || [] })
return window._nc_focus_trap
}