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

date picker should not be opened when it is disabled #1432

Closed
taotao365s opened this issue Aug 17, 2015 · 5 comments
Closed

date picker should not be opened when it is disabled #1432

taotao365s opened this issue Aug 17, 2015 · 5 comments
Labels
bug 🐛 Something doesn't work

Comments

@taotao365s
Copy link

when datepicker is disabled, it should not be opened.

do you think so?

@otroboe
Copy link

otroboe commented Nov 5, 2015

Any news or trick to prevent that ?

@oliviertassinari
Copy link
Member

I don't follow. Who do you disable the DatePicker?

@taotao365s
Copy link
Author

@oliviertassinari when form is disabled, this datepicker should disabled in my case.

@alitaheri alitaheri added the bug 🐛 Something doesn't work label Dec 8, 2015
@alitaheri alitaheri modified the milestone: 0.14.0 Release Dec 9, 2015
@oliviertassinari oliviertassinari removed this from the 0.14.0 Release milestone Dec 22, 2015
@masataka
Copy link

I think...only below.

on date-picker.jsx [v0.14.2]

focus() {
    if (this.props.disabled) return;   // <- add this line.
    // same code
},
_handleInputTouchTap(event) {
    if (this.props.disabled) return;   // <- add this line.
    //same code
},

@oliviertassinari
Copy link
Member

Fixed by #3060.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work
Projects
None yet
Development

No branches or pull requests

5 participants