File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -42,6 +42,9 @@ function SearchTypeMenuPopover({queryJSON}: SearchTypeMenuNarrowProps) {
4242 scrollContainerStyle = { styles . pv0 }
4343 />
4444 ) }
45+ { /* DeleteConfirmModal is a stable JSX element returned by the hook.
46+ Returning the element directly keeps the component identity across re-renders so React
47+ can play its exit animation instead of removing it instantly. */ }
4548 { DeleteConfirmModal }
4649 </ >
4750 ) ;
Original file line number Diff line number Diff line change @@ -277,6 +277,9 @@ function SearchTypeMenu({queryJSON}: SearchTypeMenuProps) {
277277 < View >
278278 < Text style = { styles . sectionTitle } > { translate ( 'search.savedSearchesMenuItemTitle' ) } </ Text >
279279 { renderSavedSearchesSection ( savedSearchesMenuItems ) }
280+ { /* DeleteConfirmModal is a stable JSX element returned by the hook.
281+ Returning the element directly keeps the component identity across re-renders so React
282+ can play its exit animation instead of removing it instantly. */ }
280283 { DeleteConfirmModal }
281284 </ View >
282285 ) }
You can’t perform that action at this time.
0 commit comments