Mayankaggarwal8055 opened a new pull request, #65054:
URL: https://github.com/apache/airflow/pull/65054

   Fixes #65053
   
   ## Problem
   SearchBar initializes its internal state from `defaultValue` but does not 
update when `defaultValue` changes (e.g., via URL query params or navigation).
   
   This causes the input value to go out of sync with the actual filter state.
   
   ## Solution
   Synchronize internal state with `defaultValue` using useEffect, ensuring UI 
reflects current filter state while preserving user input behavior.
   
   ## Tests
   - Added test to verify syncing when `defaultValue` changes
   - Added test to ensure user typing is not overridden unnecessarily
   - Existing debounce and clear behavior preserved


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