mirror of
https://github.com/ceph/ceph
synced 2025-01-20 10:01:45 +00:00
mgr/dashboard: Refactor table mouseenter event listener
Fixes: https://tracker.ceph.com/issues/40579 Signed-off-by: Stephan Müller <smueller@suse.com>
This commit is contained in:
parent
efc79990b2
commit
d7386c9f81
@ -179,14 +179,7 @@ export class TableComponent implements AfterContentChecked, OnInit, OnChanges, O
|
||||
ngOnInit() {
|
||||
// ngx-datatable triggers calculations each time mouse enters a row,
|
||||
// this will prevent that.
|
||||
window.addEventListener(
|
||||
'mouseenter',
|
||||
function(event) {
|
||||
event.stopPropagation();
|
||||
},
|
||||
true
|
||||
);
|
||||
|
||||
window.addEventListener('mouseenter', (event) => event.stopPropagation(), true);
|
||||
this._addTemplates();
|
||||
if (!this.sorts) {
|
||||
// Check whether the specified identifier exists.
|
||||
|
Loading…
Reference in New Issue
Block a user