@linzjs/step-ag-grid 35.0.0 → 35.0.2

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@linzjs/step-ag-grid",
3
3
  "repository": "github:linz/step-ag-grid.git",
4
4
  "license": "MIT",
5
- "version": "35.0.0",
5
+ "version": "35.0.2",
6
6
  "keywords": [
7
7
  "aggrid",
8
8
  "ag-grid",
@@ -209,14 +209,17 @@ export const ControlledMenuFr = (
209
209
  const thisDocument = anchorRef?.current ? anchorRef?.current.ownerDocument : document;
210
210
  thisDocument.addEventListener('keydown', handleKeydownTabAndEnter, true);
211
211
  thisDocument.addEventListener('keyup', handleKeyupTabAndEnter, true);
212
- thisDocument.addEventListener('mousedown', handleScreenEventForSave, true);
212
+ // ag-grid 35 moves cell focus on pointerdown, which closes the editor before mousedown fires
213
+ thisDocument.addEventListener('pointerdown', handleScreenEventForSave, true);
214
+ thisDocument.addEventListener('mousedown', handleScreenEventForCancel, true);
213
215
  thisDocument.addEventListener('mouseup', handleScreenEventForCancel, true);
214
216
  thisDocument.addEventListener('click', handleScreenEventForCancel, true);
215
217
  thisDocument.addEventListener('dblclick', handleScreenEventForCancel, true);
216
218
  return () => {
217
219
  thisDocument.removeEventListener('keydown', handleKeydownTabAndEnter, true);
218
220
  thisDocument.removeEventListener('keyup', handleKeyupTabAndEnter, true);
219
- thisDocument.removeEventListener('mousedown', handleScreenEventForSave, true);
221
+ thisDocument.removeEventListener('pointerdown', handleScreenEventForSave, true);
222
+ thisDocument.removeEventListener('mousedown', handleScreenEventForCancel, true);
220
223
  thisDocument.removeEventListener('mouseup', handleScreenEventForCancel, true);
221
224
  thisDocument.removeEventListener('click', handleScreenEventForCancel, true);
222
225
  thisDocument.removeEventListener('dblclick', handleScreenEventForCancel, true);
@@ -189,8 +189,9 @@ div.ag-row div.ag-cell.rangeSelectBottom {
189
189
  border-bottom: 3px solid #48a0f4;
190
190
  }
191
191
 
192
- // See the `.step-ag-grid--force-reveal` usage in Grid.tsx for why this exists.
193
- .step-ag-grid--force-reveal .ag-delay-render {
192
+ // ag-grid's own delay-render hides cells/rows during resize, but it doesn't always
193
+ // reliably reveal them again. Always override it rather than relying on a toggled class.
194
+ .ag-delay-render {
194
195
  .ag-cell,
195
196
  .ag-row,
196
197
  .ag-header-cell,