UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

1 lines 334 B
exports.__esModule=!0,exports.scopeTab=function(t,n){const o=(0,e.findTabbableDescendants)(t);if(!o.length)return void n.preventDefault();const s=o[n.shiftKey?0:o.length-1];if(s!==document.activeElement&&t!==document.activeElement)return;n.preventDefault();const a=o[n.shiftKey?o.length-1:0];a&&a.focus()};var e=require("./tabbable");