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

Loading…
Cancel
Save