Skip to content

[material-ui][TextField] InputProps vs inputProps confusion #11377

Closed
@eyn

Description

@eyn

The TextField (nor Input) does not pass the step property through to the input as a step attribute.

  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior

<Textfield type="number" step="0.01" /> renders a <input type="number" step="0.01" />

Current Behavior

<Textfield type="number" step="0.01" /> renders a <input type="number" />

Steps to Reproduce (for bugs)

  1. Go to https://codesandbox.io/s/lyxw254vz9
  2. Click on the up/down arrows on right of textbox and see differences in behaviour

Context

Your Environment

Tech Version
Material-UI 1.0.0.rc0
React 16
browser Safari - Not possible to insert 0.xx number and pass validation. Chrome accepts 0.xx number and validates it but step is still by unit

Metadata

Metadata

Assignees

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions