mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
Canvas: Fix exit panel edit mode issue (#69315)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
This commit is contained in:
parent
293993ac09
commit
186cd96447
@ -643,8 +643,8 @@ export class Scene {
|
||||
|
||||
render() {
|
||||
const canShowContextMenu = this.isPanelEditing || (!this.isPanelEditing && this.isEditingEnabled);
|
||||
const canShowElementTooltip =
|
||||
!this.isEditingEnabled && this.tooltip?.element && this.tooltip.element.data.links?.length > 0;
|
||||
const isTooltipValid = (this.tooltip?.element?.data?.links?.length ?? 0) > 0;
|
||||
const canShowElementTooltip = !this.isEditingEnabled && isTooltipValid;
|
||||
|
||||
return (
|
||||
<div key={this.revId} className={this.styles.wrap} style={this.style} ref={this.setRef}>
|
||||
|
@ -90,11 +90,6 @@ export class CanvasPanel extends Component<Props, State> {
|
||||
if (this.props.id === evt.payload) {
|
||||
this.needsReload = true;
|
||||
this.scene.clearCurrentSelection();
|
||||
this.scene.load(
|
||||
this.props.options.root,
|
||||
this.props.options.inlineEditing,
|
||||
this.props.options.showAdvancedTypes
|
||||
);
|
||||
}
|
||||
})
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user