[英]I want to disable keyboard input for this date picker how to do that?
使用inputProps
属性。
<TextField
id="date"
label="Birthday"
type="month"
defaultValue="2017-05"
className={classes.textField}
InputLabelProps={{
shrink: true,
}}
InputProps={{
readOnly: true,
}}
/>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.