Skip to content

Commit

Permalink
fix(ld-input): make sure minus character is not ignored
Browse files Browse the repository at this point in the history
Resolves #401
  • Loading branch information
borisdiakur committed Aug 26, 2022
1 parent be474c7 commit 722c9f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/liquid/components/ld-input/ld-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class LdInput implements InnerFocusable, ClonesAttributes {
part="input focusable"
ref={(el) => (this.input = el)}
tabIndex={this.ldTabindex}
value={this.value}
value={this.value || undefined} // the undefined fixes negative number input in input of type number
/>
{this.type === 'file' && (
<span class="ld-input__placeholder" part="placeholder">
Expand Down

0 comments on commit 722c9f9

Please sign in to comment.