@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/dist/index.css +5 -5
- package/dist/step-ag-grid.cjs +4 -2
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +4 -2
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/react-menu3/components/ControlledMenu.tsx +5 -2
- package/src/styles/Grid.scss +3 -2
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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('
|
|
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);
|
package/src/styles/Grid.scss
CHANGED
|
@@ -189,8 +189,9 @@ div.ag-row div.ag-cell.rangeSelectBottom {
|
|
|
189
189
|
border-bottom: 3px solid #48a0f4;
|
|
190
190
|
}
|
|
191
191
|
|
|
192
|
-
//
|
|
193
|
-
|
|
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,
|