input; add glass effect when editable is false

This commit is contained in:
jean-emmanuel 2018-02-02 21:44:43 +01:00
parent a80a559eb1
commit 7c94eb2887
3 changed files with 6 additions and 0 deletions

View file

@ -72,6 +72,8 @@ module.exports = class Input extends _canvas_base {
if (e.keyCode==13) this.blur()
if (e.keyCode==27) this.blur(false)
})
} else {
this.widget.classList.add('not-editable')
}
if (this.getProp('widgetId').length) {