Skip to content

Commit

Permalink
fix controlled mode props
Browse files Browse the repository at this point in the history
  • Loading branch information
chad1008 committed Jan 18, 2024
1 parent 0cba8b0 commit 34cf770
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/edit-widgets/src/components/sidebar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,9 @@ export default function Sidebar() {
// `interfaceStore`), when the sidebar closes the currently selected
// tab can't be found. This causes the component to continuously reset
// the selection to `null` in an infinite loop.Proactively setting
// the selected tab to `null` avoids that.selectedTabId={ isGeneralSidebarOpen ? currentArea : null }
// the selected tab to `null` avoids that.
onSelect={ onTabSelect }
selectedTabId={ isGeneralSidebarOpen ? currentArea : null }
selectOnMove={ false }
focusable={ false }
>
Expand Down

0 comments on commit 34cf770

Please sign in to comment.