bhumikasudarshani-cmd opened a new pull request, #65057:
URL: https://github.com/apache/airflow/pull/65057
## Fix
Added `useEffect` to watch `defaultValue` and sync internal state:
```ts
useEffect(() => {
setValue(defaultValue);
}, [defaultValue]);
```
Also added `useEffect` to the import statement.
## Testing
- Added new test: `Updates input when defaultValue prop changes`
- All 2 SearchBar tests pass
- All 148 UI tests pass
## Affected Pages
Any page using `SearchBar` with URL-driven filters:
- DagsList
- Connections
- AssetsList
Closes #65053
--
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]