Browse Source

Stop resize command when there is no selected component

pull/437/head
Artur Arseniev 9 years ago
parent
commit
10b7a43c64
  1. 3
      src/commands/view/SelectComponent.js

3
src/commands/view/SelectComponent.js

@ -295,6 +295,7 @@ module.exports = {
* @private
* */
onSelect() {
const editor = this.editor;
const model = this.em.getSelected();
if (model) {
@ -303,6 +304,8 @@ module.exports = {
this.hideElementOffset();
this.hideHighlighter();
this.initResize(el);
} else {
editor.stopCommand('resize');
}
},

Loading…
Cancel
Save