Mayankaggarwal8055 opened a new pull request, #64893:
URL: https://github.com/apache/airflow/pull/64893
Fixes #64892
## Problem
The SearchBar uses a debounced `onChange` handler. If a user types a query
and immediately clears the input, the pending 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.
## Solution
Cancel the pending debounce when clearing the input before calling
`onChange("")`.
## Tests
- Added regression test to ensure stale values are not applied after clearing
- Verified clearing emits empty value immediately
--
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]