mirror of
https://github.com/grafana/grafana.git
synced 2026-09-05 04:40:13 -05:00
Canvas: Improve changing element options UX (#49555)
This commit is contained in:
@@ -89,7 +89,7 @@ export class FrameState extends ElementState {
|
||||
reinitializeMoveable() {
|
||||
// Need to first clear current selection and then re-init moveable with slight delay
|
||||
this.scene.clearCurrentSelection();
|
||||
setTimeout(() => this.scene.initMoveable(true, this.scene.isEditingEnabled), 100);
|
||||
setTimeout(() => this.scene.initMoveable(true, this.scene.isEditingEnabled));
|
||||
}
|
||||
|
||||
// ??? or should this be on the element directly?
|
||||
|
||||
@@ -106,7 +106,7 @@ export class Scene {
|
||||
this.currentLayer = this.root;
|
||||
this.selection.next([]);
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
return this.root;
|
||||
}
|
||||
|
||||
@@ -226,7 +226,7 @@ export class Scene {
|
||||
if (this.div) {
|
||||
this.initMoveable(true, this.isEditingEnabled);
|
||||
}
|
||||
}, 100);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user