fix focus and blur handler, fix #318

This commit is contained in:
Philipp Kühn
2019-05-20 00:01:50 +02:00
parent 36cb6553f8
commit 5fcf3a962a

View File

@@ -204,16 +204,20 @@ export default class Editor extends Emitter {
tabindex: 0, tabindex: 0,
}, },
handleDOMEvents: { handleDOMEvents: {
focus: event => this.emit('focus', { focus: event => {
event, this.emit('focus', {
state: this.state, event,
view: this.view, state: this.state,
}), view: this.view,
blur: event => this.emit('blur', { })
event, },
state: this.state, blur: event => {
view: this.view, this.emit('blur', {
}), event,
state: this.state,
view: this.view,
})
},
}, },
}, },
}), }),