-
Notifications
You must be signed in to change notification settings - Fork 17
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
Any disable api? #28
Comments
What kind of a browser are you using? I admit I only test in Chrome and Firefox. I think you could just return false from the onclick handler to at least not toggle the states. If you give me a better description I can check this out tonight. |
Thanks for your comment, I've closed the report since it's irrelevant. |
Ah, I understand. It's rendered with no dimensions and when the visibility is toggled it does not recalculate the width and height. <Toggle
{...restOfProps}
recalculateOnResize={true}
/> That way you don't have to manually update the component. |
That's really nice :)
Thanks for all the effort :) |
Just released 2.3.0, it does include the resize prop. I am going to leave this open until I have updated the tests accordingly. Thanks for the catch. |
The disable props on the button is kinda buggy.
Any other solution?
The text was updated successfully, but these errors were encountered: