linear-react-components-ui 1.1.2-beta.5 → 1.1.2-beta.6

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.
@@ -126,10 +126,10 @@ const BaseDialog = props => {
126
126
  document.addEventListener('keydown', handleCloseOnEsc);
127
127
  }
128
128
  const modalContent = (_wrapperEl$current = wrapperEl.current) === null || _wrapperEl$current === void 0 ? void 0 : _wrapperEl$current.querySelector('#modal-dialog-content');
129
- const modalElementsForTrapFocus = (modalContent === null || modalContent === void 0 ? void 0 : modalContent.querySelectorAll('[href], input, select, textarea, button, [tabindex]:not([tabindex="-1"]) button:not([id="botao-fechar-modal-cabecalho"])')) || [];
129
+ const modalElementsForTrapFocus = (modalContent === null || modalContent === void 0 ? void 0 : modalContent.querySelectorAll('[href], select, textarea, button, input:not([disabled]), [tabindex]:not([tabindex="-1"])')) || [];
130
130
  if (wrapperEl && wrapperEl.current && modalElementsForTrapFocus.length) {
131
131
  const firstElementInModal = modalElementsForTrapFocus[0];
132
- const lastElementInModal = modalElementsForTrapFocus[modalElementsForTrapFocus.length - 1];
132
+ let lastElementInModal = modalElementsForTrapFocus[modalElementsForTrapFocus.length - 1];
133
133
  const handleTabKeyPress = event => {
134
134
  if (event.key === 'Tab') {
135
135
  if (event.shiftKey && document.activeElement === firstElementInModal) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linear-react-components-ui",
3
- "version": "1.1.2-beta.5",
3
+ "version": "1.1.2-beta.6",
4
4
  "description": "Linear Sistemas ReactJs Components",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/index.cjs",