Commit fe59eadc by shilin Committed by GitHub

fix: 数字输入框无法输入0 (#3641)

parent 946bd20d
......@@ -250,7 +250,7 @@ const InputTypeConfig = ({
max={50000}
onChange={(e) => {
// @ts-ignore
setValue('maxLength', e || '');
setValue('maxLength', e ?? '');
}}
/>
</Flex>
......@@ -266,7 +266,7 @@ const InputTypeConfig = ({
value={max}
onChange={(e) => {
// @ts-ignore
setValue('max', e || '');
setValue('max', e ?? '');
}}
/>
</Flex>
......@@ -278,7 +278,7 @@ const InputTypeConfig = ({
value={min}
onChange={(e) => {
// @ts-ignore
setValue('min', e || '');
setValue('min', e ?? '');
}}
/>
</Flex>
......@@ -298,7 +298,7 @@ const InputTypeConfig = ({
max={max}
onChange={(e) => {
// @ts-ignore
setValue('defaultValue', e || '');
setValue('defaultValue', e ?? '');
}}
/>
)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment