Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion lib/editor/components/timetable/EditableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ export default class EditableCell extends Component<Props, State> {
}
}

handleBlur = () => {
this.save()
}

handleChange = (evt: SyntheticInputEvent<HTMLInputElement>) => {
this.setState({data: evt.target.value})
}
Expand Down Expand Up @@ -335,7 +339,7 @@ export default class EditableCell extends Component<Props, State> {
autoFocus
defaultValue={renderCell(column, data)}
className='cell-input'
onBlur={this.cancel}
onBlur={this.handleBlur}
onChange={this.handleChange}
onFocus={this._onInputFocus}
onKeyDown={this.handleKeyDown}
Expand Down