-
Notifications
You must be signed in to change notification settings - Fork 89
Closed
Description
While editing trips in the timetable editor, clicking away from a cell you are editing will cause the cell to revert to the previous value, rather than keep the edited value. A user must press Enter to keep the edited value, but this is not intuitive to a large number of users. We should add this.save() to occur when the cell is unfocused (the this.save() call on Enter keypress is visible in the code snippet below):
datatools-ui/lib/editor/components/timetable/EditableCell.js
Lines 117 to 128 in 017a634
| case 13: // Enter | |
| evt.preventDefault() | |
| if (isFocused) { | |
| this.beginEditing() | |
| } | |
| // handle shift | |
| if (evt.shiftKey) { | |
| this.save() | |
| offsetScrollRow(-1) | |
| } else { | |
| this.save() | |
| } |