@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.
- package/dist/step-ag-grid.cjs +7 -2
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +7 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/gridPopoverEdit/GridEditBoolean.tsx +10 -3
- package/src/stories/grid/GridPopoutEditBoolean.stories.tsx +22 -0
package/dist/step-ag-grid.esm.js
CHANGED
|
@@ -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
|
|
64060
|
-
cell
|
|
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', {
|