You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* 1. Cleanup Logic: Updated the stop function in init to explicitly abort and remove the resizeController for the grid instance.
2. Dynamic AbortSignal: Updated enableColumnResizing to:
• Detect if a grid already has a resizeController and abort it before creating a new one (e.g., when columns are re-evaluated).
1. Create a localController if no external signal is provided from Blazor.
2. Use an effectiveSignal for all resizing event listeners.
3. Registry Persistence: Modified the grid registration logic to store the resizeController so it can be managed during re-initialization or disposal.
These changes ensure that whenever column resizing is re-enabled (which happens in Blazor when columns change), the old JS listeners are properly cleaned up via the AbortController.
* - Improve key handling
- Port v5 script improvement
* Update some samples and refine DG script
@@ -123,6 +131,7 @@ export function init(gridElement, autoFocus) {
123
131
124
132
document.body.addEventListener('click',bodyClickHandler,{ signal });
125
133
document.body.addEventListener('mousedown',bodyClickHandler,{ signal });// Otherwise it seems strange that it doesn't go away until you release the mouse button
134
+
document.body.addEventListener('keydown',bodyKeyDownHandler,{ signal });
126
135
gridElement.addEventListener('keydown',keyDownHandler,{ signal });
127
136
128
137
return{
@@ -131,6 +140,10 @@ export function init(gridElement, autoFocus) {
0 commit comments