Add sugar for events
Opened this issue · 0 comments
tshemsedinov commented
Support if-style
but implement something like this:
keyup: {
enter(event) {
const value = this.props.value;
if (value) {
todoCtrl.updateEditingTodo(todo, value);
this.emitCustomEvent('updateTitleEvent', todo);
this.blur();
}
},
escape() {
this.blur();
}
}