-
Notifications
You must be signed in to change notification settings - Fork 719
Add ref #324
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
Add ref #324
Conversation
|
Not sure why this is needed as a prop @oknemi? |
|
Hi, @charliekassel. I want to make it clear, that for me it is useful when calendar shows on focus. I hope #210 will be merged one day. It can be useful when you need to focus on input. It doesn't work if I add ref attribute directly to the component, as you suggested. Because there's no focus function. So, in such case, I need to go throw all children elements and find input element. |
|
@oknemi did you manage to make datepicker open on focus? If so, can you explain how? I'm struggling with this task. |
|
@Eduruiz I made separate input and datepicker with inline="true". Then I made my custom wrapper for input and datepicker calendar, like dropdown. So then you can open(toggle) your dropdown with calendar by event on your custom input. |
|
@oknemi thanks!! I'll try it next time I run into this. For this project, I have been forced to change my datepicker component. "/ |
This is intended to custom focus on input element by ref.