Under which category would you file this issue?
Providers
Apache Airflow version
latest
What happened and how to reproduce it?
Description
The SearchBar component initializes its internal state using the defaultValue prop, but does not properly stay in sync when defaultValue changes after the initial render.
This commonly happens when the search value is controlled via URL query parameters (e.g., in pages like DagsList, Connections, AssetsList). When navigation actions (such as back/forward) update the query params, the defaultValue prop changes, but the input field does not reflect the updated value.
Steps to reproduce
- Open a page using SearchBar (e.g., Dags list)
- Type a search query (e.g., "air")
- Change the URL query parameter (or use browser back/forward navigation)
- Observe the search input
Current behavior
- The actual filter (URL/query param) updates
- The SearchBar input does NOT update
- UI and filter state become inconsistent
What you think should happen instead?
Expected behavior
- SearchBar input should update whenever
defaultValue changes
- UI should always reflect the current filter state
- No mismatch between visible input and actual filter
Operating System
window 11
Deployment
None
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
Not Applicable
Kubernetes Version
No response
Helm Chart configuration
No response
Docker Image customizations
No response
Anything else?
This issue occurs consistently when navigating or updating query parameters externally.
It impacts user experience by causing the search input to display outdated values while the actual filtering logic uses the updated value.
Are you willing to submit PR?
Code of Conduct
Under which category would you file this issue?
Providers
Apache Airflow version
latest
What happened and how to reproduce it?
Description
The
SearchBarcomponent initializes its internal state using thedefaultValueprop, but does not properly stay in sync whendefaultValuechanges after the initial render.This commonly happens when the search value is controlled via URL query parameters (e.g., in pages like DagsList, Connections, AssetsList). When navigation actions (such as back/forward) update the query params, the
defaultValueprop changes, but the input field does not reflect the updated value.Steps to reproduce
Current behavior
What you think should happen instead?
Expected behavior
defaultValuechangesOperating System
window 11
Deployment
None
Apache Airflow Provider(s)
No response
Versions of Apache Airflow Providers
No response
Official Helm Chart version
Not Applicable
Kubernetes Version
No response
Helm Chart configuration
No response
Docker Image customizations
No response
Anything else?
This issue occurs consistently when navigating or updating query parameters externally.
It impacts user experience by causing the search input to display outdated values while the actual filtering logic uses the updated value.
Are you willing to submit PR?
Code of Conduct