Skip to content
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

Is it possible to support disabled={true} #52

Closed
vid opened this issue Dec 7, 2015 · 5 comments
Closed

Is it possible to support disabled={true} #52

vid opened this issue Dec 7, 2015 · 5 comments

Comments

@vid
Copy link

vid commented Dec 7, 2015

No description provided.

@vid
Copy link
Author

vid commented Dec 7, 2015

It's a standard of react-bootstrap.

@Renaud009
Copy link

Any workaround for this?

@ozluy
Copy link

ozluy commented Nov 24, 2016

+1

@cjbuchmann-work
Copy link

cjbuchmann-work commented Mar 6, 2017

Came here to see if this was available as a prop. A workaround is just to define the button separately, and add the 'disabled' attribute to the button itself. Then only return the button, if disabled.

const button = ( <button ... disabled={ disabled } /> );

return disabled ? button : (
  <DateRangePicker ...>{ button }</DateRangePicker>
);

@skratchdot
Copy link
Owner

closing this due to inactivity. please re-open if this is still an issue in v6.0.0 or greater

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants