Skip to content

Commit

Permalink
fix: 数字输入框无法输入0
Browse files Browse the repository at this point in the history
  • Loading branch information
shilin66 committed Jan 21, 2025
1 parent 3c97757 commit 20aba89
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ const InputTypeConfig = ({
max={50000}
onChange={(e) => {
// @ts-ignore
setValue('maxLength', e || '');
setValue('maxLength', e || 0);
}}
/>
</Flex>
Expand All @@ -266,7 +266,7 @@ const InputTypeConfig = ({
value={max}
onChange={(e) => {
// @ts-ignore
setValue('max', e || '');
setValue('max', e || 0);
}}
/>
</Flex>
Expand All @@ -278,7 +278,7 @@ const InputTypeConfig = ({
value={min}
onChange={(e) => {
// @ts-ignore
setValue('min', e || '');
setValue('min', e || 0);
}}
/>
</Flex>
Expand All @@ -298,7 +298,7 @@ const InputTypeConfig = ({
max={max}
onChange={(e) => {
// @ts-ignore
setValue('defaultValue', e || '');
setValue('defaultValue', e || 0);
}}
/>
)}
Expand Down

0 comments on commit 20aba89

Please sign in to comment.