0.2.0 • Published 8 years ago
focux v0.2.0
focux
detect :focus-within for better UX
npm install focuxconst focux = require("focux")api
focux.within(element)
- test if
elementmatches:focus-withinspecification - matches even without native
:focus-withinsupport elementis a DOM element node@return boolean
focux.within(element) // true || false