sadpandajoe commented on code in PR #43756:
URL: https://github.com/apache/superset/pull/43756#discussion_r3909046940


##########
superset-frontend/plugins/plugin-chart-table/src/DataTable/components/GlobalFilter.tsx:
##########
@@ -116,6 +128,16 @@ export default (memo as <T>(fn: T) => T)(function 
GlobalFilter<
 
   const handleBlur = () => {
     isSearchFocused.set(id, false);
+    isComposingRef.current = false;

Review Comment:
   Clearing the composing flag here releases any `useAsyncState` callback 
already queued during composition. If the user blurs before its 200ms delay 
expires, that callback forwards provisional text and the table’s 800ms debounce 
still sends it to the backend. Should blur cancel the pending update instead, 
and cover an immediate blur after a provisional change?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to