vrembem 4.0.0-next.21 → 4.0.0-next.23

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/dev/index.js CHANGED
@@ -1329,6 +1329,7 @@ function getPopoverElements(query) {
1329
1329
  async function close(query) {
1330
1330
  const popover = query ? getPopover.call(this, query) : await closeAll.call(this);
1331
1331
  if (popover && popover.state === "opened") {
1332
+ popover.el.inert = true;
1332
1333
  popover.el.classList.remove(this.settings.stateActive);
1333
1334
  if (popover.trigger.hasAttribute("aria-controls")) {
1334
1335
  popover.trigger.setAttribute("aria-expanded", "false");
@@ -1385,7 +1386,7 @@ function handleMouseEnter(popover) {
1385
1386
  const delay = this.activeTooltip ? 0 : popover.config["toggle-delay"];
1386
1387
  if (this.activeTooltip) this.activeTooltip.close();
1387
1388
  popover.toggleDelayId = setTimeout(() => {
1388
- if (popover) popover.open();
1389
+ if (popover.id) popover.open();
1389
1390
  }, delay);
1390
1391
  }
1391
1392
  function handleMouseLeave(popover) {
@@ -2812,6 +2813,7 @@ function deregisterEventListeners(entry) {
2812
2813
  }
2813
2814
  async function open(query) {
2814
2815
  const popover = getPopover.call(this, query);
2816
+ popover.el.inert = false;
2815
2817
  popover.el.classList.add(this.settings.stateActive);
2816
2818
  if (popover.trigger.hasAttribute("aria-controls")) {
2817
2819
  popover.trigger.setAttribute("aria-expanded", "true");
@@ -2860,6 +2862,8 @@ async function register(el, trigger) {
2860
2862
  if (entry.el.classList.contains(this.settings.stateActive)) {
2861
2863
  await entry.open();
2862
2864
  handleDocumentClick.call(this, entry);
2865
+ } else {
2866
+ entry.el.inert = true;
2863
2867
  }
2864
2868
  entry.popper.setOptions({
2865
2869
  placement: entry.config["placement"]