react-magma-dom 4.7.0-next.17 → 4.7.0-next.18

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.
@@ -6594,7 +6594,7 @@ function useFocusLock(active, header, body) {
6594
6594
  var _rootNode$current;
6595
6595
  focusableItems.current = Array.from(((_rootNode$current = rootNode.current) == null ? void 0 : _rootNode$current.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]), video')) || []).filter(function (element) {
6596
6596
  var style = window.getComputedStyle(element);
6597
- return element instanceof HTMLElement && style.display !== 'none' && style.visibility !== 'hidden';
6597
+ return element instanceof HTMLElement && style.display !== 'none' && style.visibility !== 'hidden' && !element.hasAttribute('disabled');
6598
6598
  });
6599
6599
  };
6600
6600
  React.useEffect(function () {