vrembem 3.0.20 → 3.0.22

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.
@@ -413,15 +413,8 @@ function setOverflowHidden(state, selector) {
413
413
  }
414
414
  function setInert(state, selector) {
415
415
  if (selector) {
416
- const els = document.querySelectorAll(selector);
417
- els.forEach(el => {
418
- if (state) {
419
- el.inert = true;
420
- el.setAttribute("aria-hidden", true);
421
- } else {
422
- el.inert = null;
423
- el.removeAttribute("aria-hidden");
424
- }
416
+ document.querySelectorAll(selector).forEach(el => {
417
+ el.inert = state;
425
418
  });
426
419
  }
427
420
  }