mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 18:27:59 -04:00
[ML] Fixes a regression where clicking on a swimlane cell would no longer work.
This commit is contained in:
parent
92216225e2
commit
c9a870bc43
1 changed files with 9 additions and 3 deletions
|
@ -903,15 +903,21 @@ export const Explorer = injectI18n(injectObservablesAsProps(
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
isSwimlaneSelectActive = false;
|
||||||
onSwimlaneEnterHandler = () => this.setSwimlaneSelectActive(true);
|
onSwimlaneEnterHandler = () => this.setSwimlaneSelectActive(true);
|
||||||
onSwimlaneLeaveHandler = () => this.setSwimlaneSelectActive(false);
|
onSwimlaneLeaveHandler = () => this.setSwimlaneSelectActive(false);
|
||||||
setSwimlaneSelectActive = (active) => {
|
setSwimlaneSelectActive = (active) => {
|
||||||
if (!active && this.disableDragSelectOnMouseLeave) {
|
if (this.isSwimlaneSelectActive && !active && this.disableDragSelectOnMouseLeave) {
|
||||||
this.dragSelect.clearSelection();
|
|
||||||
this.dragSelect.stop();
|
this.dragSelect.stop();
|
||||||
|
this.isSwimlaneSelectActive = active;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!this.isSwimlaneSelectActive && active) {
|
||||||
this.dragSelect.start();
|
this.dragSelect.start();
|
||||||
|
this.dragSelect.clearSelection();
|
||||||
|
this.dragSelect.setSelectables(document.getElementsByClassName('sl-cell'));
|
||||||
|
this.isSwimlaneSelectActive = active;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// This queue tracks click events while the swimlanes are loading.
|
// This queue tracks click events while the swimlanes are loading.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue