Mayankaggarwal8055 opened a new issue, #64892:
URL: https://github.com/apache/airflow/issues/64892

   ### Under which category would you file this issue?
   
   Providers
   
   ### Apache Airflow version
   
   main (latest)
   
   ### What happened and how to reproduce it?
   
   ### Description
   
   The `SearchBar` component uses a debounced `onChange` handler. When a user 
types a query and immediately clears the input, the previously scheduled 
debounce callback is not cancelled.
   
   As a result, the old query value is applied again after the debounce delay, 
causing the cleared input to revert to the previous value.
   
   ---
   
   ### Steps to reproduce
   
   1. Type a query (e.g. "air")
   2. Immediately click the clear button
   3. Wait for the debounce delay
   
   ---
   
   ### Current behavior
   
   - Input is cleared initially
   - After the debounce delay, the previous query reappears
   
   ### What you think should happen instead?
   
   ### Expected behavior
   
   - Clearing the input should cancel any pending debounce
   - The input should remain empty
   - No stale value should be applied
   
   ### Operating System
   
   Windows 10
   
   ### Deployment
   
   None
   
   ### Apache Airflow Provider(s)
   
   _No response_
   
   ### Versions of Apache Airflow Providers
   
   This issue occurs consistently when clearing the search input immediately 
after typing.
   
   It affects user experience by causing the input to behave inconsistently due 
to stale debounced values.
   
   ### Official Helm Chart version
   
   Not Applicable
   
   ### Kubernetes Version
   
   _No response_
   
   ### Helm Chart configuration
   
   _No response_
   
   ### Docker Image customizations
   
   _No response_
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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]

Reply via email to