@zag-js/focus-visible
Advanced tools
Comparing version 0.0.0-dev-20221228170256 to 0.0.0-dev-20221229205502
@@ -53,3 +53,8 @@ "use strict"; | ||
const target = event.composedPath ? event.composedPath()[0] : event.target; | ||
if (target.matches(":focus-visible")) | ||
let matches = false; | ||
try { | ||
matches = target.matches(":focus-visible"); | ||
} catch { | ||
} | ||
if (matches) | ||
return; | ||
@@ -56,0 +61,0 @@ trigger("pointer", event); |
{ | ||
"name": "@zag-js/focus-visible", | ||
"version": "0.0.0-dev-20221228170256", | ||
"version": "0.0.0-dev-20221229205502", | ||
"description": "Focus visible polyfill utility based on WICG", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
11579
274