Skip to content

Commit e4d1803

Browse files
IndependentPanel: Reset temporary expansion on search blur
Ensure the sidebar’s temporary expansion (forceExpand) is cleared when the search input loses focus. This prevents an edge case where the panel could remain stuck expanded if the pin state is toggled while the input is focused. - Unconditionally clear forceExpand on input blur - Kept behavior of clearing forceExpand on pin toggle Why: avoids a UX inconsistency reported in review while keeping scope minimal and isolated to the Independent Panel UI.
1 parent 43f9ab4 commit e4d1803

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pages/IndependentPanel/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ function App() {
278278
autoComplete="off"
279279
ref={searchInputRef}
280280
onFocus={() => setForceExpand(true)}
281-
onBlur={() => collapsed && setForceExpand(false)}
281+
onBlur={() => setForceExpand(false)}
282282
/>
283283
</div>
284284
<hr />

0 commit comments

Comments
 (0)