Tabs from material-ui are unclickable. Nothing happens then i click on them. Code is just simple:
`var Tabs = React.createClass ({
render: function() {
return (
<Tabs>
<Tab label="1">
<p>hello 1</p>
</Tab>
<Tab label="2"/>
<p>hello 2</p>
</Tab>
</Tabs>
);
}
});`
But on the page i see theese tabs with first tab opened and then i click on the second nothing happens. Tried different browsers. What could go wrong?
You must add this code:
var injectTapEventPlugin = require("react-tap-event-plugin");
injectTapEventPlugin();
I wonder why it is not explicitly mentioned in their examples.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.