@zag-js/popover 0.0.0-dev-20220426093009 → 0.0.0-dev-20220427060435
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -8
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +2 -8
- package/dist/index.mjs.map +2 -2
- package/dist/popover.machine.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -729,7 +729,7 @@ function connect(state, send, normalize = normalizeProp) {
|
|
|
729
729
|
// src/popover.machine.ts
|
|
730
730
|
var import_core = require("@zag-js/core");
|
|
731
731
|
var import_popper2 = require("@zag-js/popper");
|
|
732
|
-
var import_aria_hidden = require("aria-hidden");
|
|
732
|
+
var import_aria_hidden = require("@zag-js/aria-hidden");
|
|
733
733
|
var import_focus_trap = require("focus-trap");
|
|
734
734
|
var { and, or } = import_core.guards;
|
|
735
735
|
function machine(ctx = {}) {
|
|
@@ -856,13 +856,7 @@ function machine(ctx = {}) {
|
|
|
856
856
|
return;
|
|
857
857
|
let unhide;
|
|
858
858
|
nextTick(() => {
|
|
859
|
-
|
|
860
|
-
if (!el)
|
|
861
|
-
return;
|
|
862
|
-
try {
|
|
863
|
-
unhide = (0, import_aria_hidden.hideOthers)(el);
|
|
864
|
-
} catch (e2) {
|
|
865
|
-
}
|
|
859
|
+
unhide = (0, import_aria_hidden.ariaHidden)([dom.getContentEl(ctx2), dom.getTriggerEl(ctx2)]);
|
|
866
860
|
});
|
|
867
861
|
return () => unhide == null ? void 0 : unhide();
|
|
868
862
|
},
|