mirror of
https://github.com/strapi/strapi.git
synced 2025-08-13 03:07:32 +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}
|
||||
placeholder={message}
|
||||
ref={props.inputRef}
|
||||
step={!Number.isNaN(Number(props.step)) ? Number(props.step) : 1}
|
||||
step={props.step}
|
||||
style={props.style}
|
||||
tabIndex={props.tabIndex}
|
||||
type="number"
|
||||
@ -49,7 +49,7 @@ InputNumber.defaultProps = {
|
||||
onBlur: () => {},
|
||||
onFocus: () => {},
|
||||
placeholder: 'app.utils.placeholder.defaultMessage',
|
||||
step: 1,
|
||||
step: 'any',
|
||||
style: {},
|
||||
tabIndex: '0',
|
||||
};
|
||||
|
@ -165,7 +165,7 @@ InputNumberWithErrors.defaultProps = {
|
||||
labelStyle: {},
|
||||
noErrorsDescription: false,
|
||||
placeholder: 'app.utils.placeholder.defaultMessage',
|
||||
step: 1,
|
||||
step: 'any',
|
||||
style: {},
|
||||
tabIndex: '0',
|
||||
validations: {},
|
||||
|
Loading…
x
Reference in New Issue
Block a user