Skip to content

Commit

Permalink
refactor(Timetable pasting): clean up branch
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Nov 23, 2023
1 parent 51e0676 commit 1bd69b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/editor/components/timetable/EditableCell.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,6 @@ export default class EditableCell extends Component<Props, State> {
onPaste={this.handlePaste}
placeholder={placeholder || ''}
readOnly={!isEditing}
ref='inputCell'
type='text' />
: <div
className='cell-div noselect'
Expand Down
5 changes: 0 additions & 5 deletions lib/editor/components/timetable/TimetableGrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,6 @@ export default class TimetableGrid extends Component<Props> {
addNewRow,
columns,
data,
// setActiveCell,
hideDepartureTimes,
updateCellValue,
updateScroll
Expand Down Expand Up @@ -410,10 +409,6 @@ export default class TimetableGrid extends Component<Props> {
}
}
}
// Prevent the active cell from being set to the last cell in the pasted selection
// if (activeRow !== rowIndex + pastedRows.length - 1) {
// setActiveCell(`${activeRow}-${activeCol}`)
// }
updateScroll(activeRow, activeCol)
}

Expand Down

0 comments on commit 1bd69b8

Please sign in to comment.