Skip to content

Commit cec5eb3

Browse files
committed
step and textAlign defaultProps in NumberInput as before
1 parent e2da27c commit cec5eb3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/ra-ui-materialui/src/input/NumberInput.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ NumberInput.propTypes = {
171171
step: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
172172
};
173173

174+
NumberInput.defaultProps = {
175+
step: 'any',
176+
textAlign: 'right',
177+
};
178+
174179
export interface NumberInputProps
175180
extends CommonInputProps,
176181
Omit<

0 commit comments

Comments
 (0)