Skip to content

Commit

Permalink
ensure you stay on the sheet when there's a validation error
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfig committed Sep 19, 2024
1 parent cbd658b commit 4cf1312
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -412,6 +412,10 @@ class InlineEditorHandler {
const validationError = await this.validateInput();
if (validationError) {
events.emit('hoverCell', { x: this.location.x, y: this.location.y, validationId: validationError, value });
// need to change the sheet back to the original sheet if there's a validation error
if (skipChangeSheet) {
sheets.current = location.sheetId;
}
return false;
} else {
quadraticCore.setCellValue(
Expand Down

0 comments on commit 4cf1312

Please sign in to comment.