Skip to content

Commit

Permalink
[FIX] grid: don't focus input if it's unmounted
Browse files Browse the repository at this point in the history
opw-3277966

closes #2376

Signed-off-by: Rémi Rahir (rar) <[email protected]>
  • Loading branch information
LucasLefevre committed Apr 20, 2023
1 parent 300596b commit b00f115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/grid/grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ export class Grid extends Component<Props, SpreadsheetChildEnv> {
!this.env.model.getters.getSelectedFigureId() &&
this.env.model.getters.getEditionMode() === "inactive"
) {
this.hiddenInput.el!.focus();
this.hiddenInput.el?.focus();
}
}

Expand Down

0 comments on commit b00f115

Please sign in to comment.