@linzjs/step-ag-grid 32.1.0 → 32.1.1

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.
@@ -64056,8 +64056,13 @@ const BooleanCellRenderer = (props) => {
64056
64056
  return;
64057
64057
  }
64058
64058
  const cell = eGridCell?.querySelector('.ag-cell-focus .grid-edit-boolean input.ag-checkbox-input:not(:disabled)');
64059
- if (cell && cell.ownerDocument.activeElement !== cell) {
64060
- cell.focus();
64059
+ if (cell) {
64060
+ // When you redraw a cell the activeElement moves to the cell div away from input
64061
+ // Refocus here if the cell div is active back to the input
64062
+ const activeElement = cell.ownerDocument.activeElement;
64063
+ if (activeElement && activeElement.getAttribute('role') === 'gridcell' && activeElement !== cell) {
64064
+ cell.focus();
64065
+ }
64061
64066
  }
64062
64067
  });
64063
64068
  return (jsx("div", { className: clsx('grid-edit-boolean ag-wrapper ag-input-wrapper ag-checkbox-input-wrapper', {