fix focus and blur handler, fix #318
This commit is contained in:
@@ -204,16 +204,20 @@ export default class Editor extends Emitter {
|
|||||||
tabindex: 0,
|
tabindex: 0,
|
||||||
},
|
},
|
||||||
handleDOMEvents: {
|
handleDOMEvents: {
|
||||||
focus: event => this.emit('focus', {
|
focus: event => {
|
||||||
|
this.emit('focus', {
|
||||||
event,
|
event,
|
||||||
state: this.state,
|
state: this.state,
|
||||||
view: this.view,
|
view: this.view,
|
||||||
}),
|
})
|
||||||
blur: event => this.emit('blur', {
|
},
|
||||||
|
blur: event => {
|
||||||
|
this.emit('blur', {
|
||||||
event,
|
event,
|
||||||
state: this.state,
|
state: this.state,
|
||||||
view: this.view,
|
view: this.view,
|
||||||
}),
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user