Browse Source

Update select component

pull/36/head
Artur Arseniev 10 years ago
parent
commit
f77de085fc
  1. 3
      src/commands/view/SelectComponent.js

3
src/commands/view/SelectComponent.js

@ -67,7 +67,8 @@ define(function() {
var comp = this.editorModel.get('selectedComponent');
var focused = document.activeElement.tagName !== 'BODY';
if(key == 8 || key == 46) {
e.preventDefault();
if(!focused)
e.preventDefault();
if(comp && !focused){
if(!comp.get('removable'))
return;

Loading…
Cancel
Save