In the documentation https://ionicframework.com/docs/api/datetime, I see the open method, but I’m not clear how to use it. Is it possible this method is not available? I don’t see it
IonDatetime interface in
For Angular, I’ve found this post: Trigger DatePicker programmatically - #4 by waleedshkt with this workaround ionic-tjhoo5 - StackBlitz
Does anyone have a workaround such this one for React? I tried using useRef but the ref attribute doesn’t work on an ionic component.
Any help will be appreciated!
Here’s my code attempt: iondatetime-open - CodeSandbox