TextField InputProps lang attribute isn't applied #21486
Labels
component: text field
This is the name of the generic UI component, not the React module!
duplicate
This issue or pull request already exists
When writing
<TextField InputProps={{ lang: "en"}}>...
, thelang
attribute doesn't get applied to the<input>
in the DOM. Instead it gets applied to input's parent<div>
Current Behavior 😯
When writing
<TextField InputProps={{ lang: "en" }}>...
, thelang
attribute doesn't get applied to the<input>
in the DOM. Instead it gets applied to input's parent<div>
Expected Behavior 🤔
The resulting DOM should be
<input lang="en">
Context 🔦
I want to specify the language the text will be entered in a component that is intended for translation.
Your Environment 🌎
The text was updated successfully, but these errors were encountered: