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 27bc3f6 commit 5dbf4e5
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 @@ -869,7 +869,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, moreControlProps} = this.props;

const itemsForSelect = items
Expand All @@ -886,6 +886,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 5dbf4e5

Please sign in to comment.