focux
detect :focus-within
for better UX
npm install focux
const focux =
api
focux.within(element)
- test if
element
matches:focus-within
specification - matches even without native
:focus-within
support element
is a DOM element node@return boolean
focux // true || false