Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
get focusable () {
return findFocusable(this._link)
}
get focusable () {
return findFocusable(this._link)
}
get focusable () {
let focusable = findFocusable(this, () => true, true) || []
const focusableCount = focusable && focusable.length || 0
warn(focusableCount === 1, `[Focusable] Exactly one focusable child is required (${focusableCount} found).`)
focusable = focusable ? focusable[0] : false
if (focusable && typeof focusable.focus === 'function') {
return focusable
} else {
return false
}
}