Skip to content

Commit

Permalink
Merge pull request #1217 from valadas/NaN-label
Browse files Browse the repository at this point in the history
Also handle NaN for label
  • Loading branch information
valadas authored Oct 26, 2024
2 parents 0d9ae21 + c5e6b92 commit 4228538
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ export class DnnInput {
}

private shouldLabelFloat(): boolean {
if (this.type === "number" && isNaN(this.value as number)) {
return true;
}

if (this.focused) {
return false;
}
Expand Down

0 comments on commit 4228538

Please sign in to comment.