Skip to content

Commit

Permalink
#485 - fixed editor show empty string if 0
Browse files Browse the repository at this point in the history
  • Loading branch information
m2a2x committed Jul 31, 2024
1 parent 25e48bb commit 2bbd565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion formats/number
2 changes: 1 addition & 1 deletion src/components/editors/text-editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class TextEditor implements EditorBase {
type: 'text',
enterKeyHint: 'enter',
// set input value from cell data
value: this.editCell?.val || '',
value: this.editCell?.val ?? '',
// save input element as ref for further usage
ref: (el: HTMLInputElement | null) => {
this.editInput = el;
Expand Down

0 comments on commit 2bbd565

Please sign in to comment.