Skip to content

Commit

Permalink
fix(AdaptiveTabs): fix behaviour when resizing with opened "More" menu (
Browse files Browse the repository at this point in the history
  • Loading branch information
artemipanchuk authored Jun 6, 2024
1 parent ca2e051 commit d076514
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/AdaptiveTabs/AdaptiveTabs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ export class AdaptiveTabs<T> extends React.Component<AdaptiveTabsProps<T>, Adapt

renderSelect() {
const activeTabID = this.activeTab;
const {firstHiddenTabIndex, tabChosenFromSelectId} = this.state;
const {firstHiddenTabIndex, tabChosenFromSelectId, isSelectOpened} = this.state;
const {items} = this.props;

const itemsForSelect = items
Expand All @@ -884,6 +884,7 @@ export class AdaptiveTabs<T> extends React.Component<AdaptiveTabsProps<T>, Adapt

return (
<Select
open={isSelectOpened}
onUpdate={this.onChooseTabFromSelect}
options={itemsForSelect}
value={[]}
Expand Down

0 comments on commit d076514

Please sign in to comment.