We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using the stock playground, you can see that for the default theme, the telephone input is of type="tel". Here's the excerpt from the generated html:
type="tel"
<div class="form-group field field-string"> <label class="control-label" for="root_telephone">Telephone</label> <input class="form-control" id="root_telephone" label="Telephone" placeholder="" type="tel" value=""> </div>
When you switch to the material-ui theme, that type is lost. Here's the excerpt from the generated html:
<div class="MuiInputBase-root MuiInput-root MuiInput-underline MuiInputBase-formControl MuiInput-formControl"> <input aria-invalid="false" id="root_telephone" placeholder="" type="string" class="MuiInputBase-input MuiInput-input" value=""> </div>
Telephone
material-ui
The material-ui TextWidget will respect the inputType specified in the uiSchema just like the default theme
TextWidget
inputType
uiSchema
The material-ui TextWidget ignores the inputType
"@rjsf/core": "^2.4.0", "@rjsf/material-ui": "^2.4.0",
The text was updated successfully, but these errors were encountered:
Actually, only the default theme and the antd theme respect the inputType
antd
Sorry, something went wrong.
Did #2215 fix that?
No... That fix does not respect inputType on the UI:schema. You can tell by simply using the stock playground per my steps above.
Same with bootstrap4 theme
Fixed in v5 beta
No branches or pull requests
Prerequisites
Description
Using the stock playground, you can see that for the default theme, the telephone input is of
type="tel"
. Here's the excerpt from the generated html:When you switch to the material-ui theme, that type is lost. Here's the excerpt from the generated html:
Steps to Reproduce
Telephone
input and see thetype="tel"
on itmaterial-ui
Telephone
input and DO NOT see thetype="tel"
on it.Expected behavior
The
material-ui
TextWidget
will respect theinputType
specified in theuiSchema
just like the default themeActual behavior
The
material-ui
TextWidget
ignores theinputType
Version
The text was updated successfully, but these errors were encountered: