-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get Tabs work? #288
Comments
you need to do this: or add this to createElement("div") properties |
@leordex Did this fix your bug? Tabs for for me in the current version. Would be awesome if you could check and close this issue if it's not needed anymore. |
Closing for now - @leordex please reopen if this is still an issue. |
Adding the following worked for me (as per @yapcheahshen suggestion): var injectTapEventPlugin = require("react-tap-event-plugin"); It would be good to mention it in the component/tabs documentation as I had the same issue. |
Material UI Tabs are still not working, please commit a fix. |
With the react-tap-event-plugin the tabs are working fine for me. |
Can't seem to get this to work myself :( Included the |
I'm having this issue right now.. is there a fix for it? |
Just for your information. |
@blackChef your solution helps me a lot ! I have been involved in this problem a morning. Thank you! |
just share some interesting finding. in fact, you can use the "disabled" attribute in the Tab to control the disable/enable as the following... it just works :)
|
@dreamershi That is not documented. Should I be worried? Else there is no way to prevent the switching. |
@activatedgeek I believe it should be OK because the component from library just pass down the props to the underlying component and "disabled" is the standard attributes of react. |
I cannot get the Tabs to work... I have tried the "react-tap-event-plugin" but nothing.
|
@iesta Are you sure you have injected the tap-event plugin before your components get mounted? It works for me pretty well without any hassle. Here is little example of what I have done (using
|
Still not working. I have tried many different things...
Tabs are in OperationEdit |
But I have this error: |
Can't get Tabs to work. Here is my dependency list
And here is the code snippet
Note : injectTapEventPlugin is already invoked in my root component
Can anybody give me any workaround how to get this to work |
I inserted Tabs code into my component. OK, Tabs displayed on page but second tab remains inactive and I can't set it active.
Where I'm not right?
Tabs code:
<div className="authorization">
<Tabs>
<Tab label="Авторизация">
{login}
</Tab>
<Tab label="Регистрация">
{register}
</Tab>
</Tabs>
</div>
The text was updated successfully, but these errors were encountered: