You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use the component inside a div with and have an icon next to it. I'd like to open the datepicker by clicking on the icon. Is there a way to do it like this:
I'm trying the same thing.
I've tried all manner of playing with elementRefs to no avail
Example of stuff that doesn't work
const ref = this.datepicker.elementRef;
const input = ref.nativeElement.querySelector('input');
input.click();
this.datepicker.onInputClick();
We use the component inside a div with and have an icon next to it. I'd like to open the datepicker by clicking on the icon. Is there a way to do it like this:
I tried it like this so far this way and also by accessing it from the parent component - does not work in both cases.
It would be great to have an API endpoint exposing the trigger method.
Thanks a lot!
The text was updated successfully, but these errors were encountered: