You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "bhumikasudarshani-cmd (via GitHub)" <gi...@apache.org> on 2026/04/11 11:55:44 UTC

[PR] fix: sync SearchBar input with updated defaultValue prop [airflow]

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: sync SearchBar input with updated defaultValue prop [airflow]

Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi closed pull request #65057: fix: sync SearchBar input with updated defaultValue prop
URL: https://github.com/apache/airflow/pull/65057


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] fix: sync SearchBar input with updated defaultValue prop [airflow]

Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi commented on PR #65057:
URL: https://github.com/apache/airflow/pull/65057#issuecomment-4236968269

   Duplicate of https://github.com/apache/airflow/pull/65054


-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org