The <TextField> component provided by material-ui for some reason generates a small icon at the end of the input depending on the type of the TextField.
If type="date" then I get this icon at the end of the input:
If type="time" then I get a clock icon.
What is confusing is that these icons doesn't show on all of the systems I am testing on. For example, the vm I am using do not display these icons, same goes for my ios device. But when I try it out locally these icons shows up.
I have read the documentation for TextFields but I can't find any api references for these icons.
First I thought that it was some kind of endAdornment, but trying to override the icon with an endAdornment only causes the component to generate additional icons/strings.
This is my <TextField> component:
<TextField
onChange={this.OnChange.bind(this)}
name="date"
value={this.state.date}
label={GetText(Text.Date)}
variant="filled"
type="date"
InputProps={{
disableUnderline: true,
style: {
backgroundColor: "#FFFFFF",
borderRadius: "4px",
border: "1px solid #CED4DC",
fontSize: ".81em",
}
}}
InputLabelProps={{
shrink: true
}}
/>
If anyone knows a way to remove these icons, I am all ears.
