diff --git a/src/components/inspectors/InspectorPanel.vue b/src/components/inspectors/InspectorPanel.vue index 178625bea..dc8c5135b 100644 --- a/src/components/inspectors/InspectorPanel.vue +++ b/src/components/inspectors/InspectorPanel.vue @@ -67,6 +67,7 @@ import get from 'lodash/get'; import cloneDeep from 'lodash/cloneDeep'; import Process from './process'; import isString from 'lodash/isString'; +import { isEqual } from 'lodash'; Vue.component('FormText', renderer.FormText); Vue.component('FormInput', FormInput); @@ -91,10 +92,12 @@ export default { }; }, watch: { - highlightedNode() { - document.activeElement.blur(); - this.prepareData(); - this.prepareConfig(); + highlightedNode(newVal, oldVal) { + if (!isEqual(newVal, oldVal)) { + document.activeElement.blur(); + this.prepareData(); + this.prepareConfig(); + } }, 'highlightedNode.definition.assignment'(current, previous) { this.handleAssignmentChanges(current, previous); }, 'highlightedNode.definition.assignmentLock'(current, previous) { this.handleAssignmentChanges(current, previous); },