Skip to content

Commit

Permalink
Fix tab switch issue
Browse files Browse the repository at this point in the history
  • Loading branch information
sanoguch committed Apr 27, 2023
1 parent bec7fff commit 57929e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions es/DockPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,7 @@ export class DockPanel extends React.PureComponent {
DockPanel._droppingPanel = panel;
}
onDragOverOtherPanel() {
if (this.state.dropFromPanel) {
this.setState({ dropFromPanel: null });
}
this.setState({ dropFromPanel: null });
}
onPanelCornerDrag(e, corner) {
let { parent, x, y, w, h } = this.props.panelData;
Expand Down
4 changes: 1 addition & 3 deletions lib/DockPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,7 @@ class DockPanel extends React.PureComponent {
DockPanel._droppingPanel = panel;
}
onDragOverOtherPanel() {
if (this.state.dropFromPanel) {
this.setState({ dropFromPanel: null });
}
this.setState({ dropFromPanel: null });
}
onPanelCornerDrag(e, corner) {
let { parent, x, y, w, h } = this.props.panelData;
Expand Down
4 changes: 1 addition & 3 deletions src/DockPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ export class DockPanel extends React.PureComponent<Props, State> {
};

onDragOverOtherPanel() {
if (this.state.dropFromPanel) {
this.setState({dropFromPanel: null});
}
this.setState({dropFromPanel: null});
}

// used both by dragging head and corner
Expand Down

0 comments on commit 57929e8

Please sign in to comment.