Material UI React 输入在升级到 4.0.0 后损坏
Material UI React Input broken after upgrading to 4.0.0
从 "@material-ui/core": "3.9.2",
升级到 "@material-ui/core": "^4.0.0-rc.0",
后,我遇到了一些 css 问题。
输入示例,一些 css:height: auto !important;
似乎缺失:
我的配置与此处相同:https://material-ui.com/getting-started/installation/
我的代码很基础:
<FormControl>
<InputLabel htmlFor="email">{`Your email address`}</InputLabel>
<Input
id="email"
onChange={e => this.setState({ email: e.target.value })}
type="text"
onKeyPress={this.handleKeyPress}
value={this.state.email}
/>
</FormControl>
import 'tachyons'
发生冲突。
去掉后效果很好
从 "@material-ui/core": "3.9.2",
升级到 "@material-ui/core": "^4.0.0-rc.0",
后,我遇到了一些 css 问题。
输入示例,一些 css:height: auto !important;
似乎缺失:
我的配置与此处相同:https://material-ui.com/getting-started/installation/
我的代码很基础:
<FormControl>
<InputLabel htmlFor="email">{`Your email address`}</InputLabel>
<Input
id="email"
onChange={e => this.setState({ email: e.target.value })}
type="text"
onKeyPress={this.handleKeyPress}
value={this.state.email}
/>
</FormControl>
import 'tachyons'
发生冲突。
去掉后效果很好