mirror of
https://github.com/strapi/strapi.git
synced 2025-08-14 03:34:53 +00:00
Merge pull request #3957 from jasongitmail/step-any-fix
Fix input number step
This commit is contained in:
commit
234c20a73d
@ -28,7 +28,7 @@ function InputNumber(props) {
|
|||||||
onFocus={props.onFocus}
|
onFocus={props.onFocus}
|
||||||
placeholder={message}
|
placeholder={message}
|
||||||
ref={props.inputRef}
|
ref={props.inputRef}
|
||||||
step={!Number.isNaN(Number(props.step)) ? Number(props.step) : 1}
|
step={props.step}
|
||||||
style={props.style}
|
style={props.style}
|
||||||
tabIndex={props.tabIndex}
|
tabIndex={props.tabIndex}
|
||||||
type="number"
|
type="number"
|
||||||
@ -49,7 +49,7 @@ InputNumber.defaultProps = {
|
|||||||
onBlur: () => {},
|
onBlur: () => {},
|
||||||
onFocus: () => {},
|
onFocus: () => {},
|
||||||
placeholder: 'app.utils.placeholder.defaultMessage',
|
placeholder: 'app.utils.placeholder.defaultMessage',
|
||||||
step: 1,
|
step: 'any',
|
||||||
style: {},
|
style: {},
|
||||||
tabIndex: '0',
|
tabIndex: '0',
|
||||||
};
|
};
|
||||||
|
@ -165,7 +165,7 @@ InputNumberWithErrors.defaultProps = {
|
|||||||
labelStyle: {},
|
labelStyle: {},
|
||||||
noErrorsDescription: false,
|
noErrorsDescription: false,
|
||||||
placeholder: 'app.utils.placeholder.defaultMessage',
|
placeholder: 'app.utils.placeholder.defaultMessage',
|
||||||
step: 1,
|
step: 'any',
|
||||||
style: {},
|
style: {},
|
||||||
tabIndex: '0',
|
tabIndex: '0',
|
||||||
validations: {},
|
validations: {},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user