标签组件中有三个标签A,B,C。在TextField中键入一个字符,该字符采用Tab C的形式。突然,标签切换为空,没有选择任何标签。
DEPS:
SELECT
"material-ui": "^0.15.0-alpha.1",
"react": "*",
"react-dom": "^0.14.3",
"react-tap-event-plugin": "^0.2.2"
"electron-prebuilt": "^0.36.0"
然后按任意键一次。
答案 0 :(得分:0)
你遇到了一个物质问题:
https://github.com/callemall/material-ui/issues/2189
解决方法是在文本输入中添加onChange处理程序:
<TextField
hintText="username"
floatingLabelText="please enter username"
type="text"
onChange={(e)=>{e.stopPropagation();}}
/>
<TextField
hintText="password"
floatingLabelText="please enter password"
type="text"
onChange={(e)=>{e.stopPropagation();}}