Skip to content

Commit

Permalink
Fix handling of minus sign in number input
Browse files Browse the repository at this point in the history
Refs: #7072
  • Loading branch information
anicyne committed Jan 3, 2025
1 parent c35d200 commit 84411ba
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/components/src/components/input-number/shadow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -472,11 +472,7 @@ export class KolInputNumber implements InputNumberAPI, FocusableElement {

@Watch('_value')
public validateValue(value?: number | Iso8601 | null): void {
this.controller.validateValueEx(value, (v) => {
if (v === '' && this.inputRef) {
this.inputRef.value = '';
}
});
this.controller.validateValueEx(value);
}

public componentWillLoad(): void {
Expand Down

0 comments on commit 84411ba

Please sign in to comment.