Skip to content

Commit

Permalink
Merge pull request #203 from sanoguch/master
Browse files Browse the repository at this point in the history
Fix tab switch issue
  • Loading branch information
rinick authored Jun 8, 2023
2 parents bec7fff + 57929e8 commit 13c7463
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 13c7463

Please sign in to comment.