Can i trigger open / close datepicker from method ?
See original GitHub issuei want to trigger click open / close datepicker from method. At vue 2 i try to put ref at datepicker component and try to trigger click it from method like code below but nothing happened.
at component
<datepicker ref="datepick"></datepicker>
at method this.$refs.datepick.click();
any suggestions ?
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
jQuery Datepicker close datepicker after selected date
There are 2 ways to do this. One is to use autoclose property, the other (alternativ) way is to use the on change...
Read more >How to trigger on close datepicker() event? - ACF Support
Approach so far. As you can see from the code below I've tried several ways to trigger this. None of them work (correctly)....
Read more >Angular directives for Bootstrap - AngularUI
The open method returns a modal instance, an object with the following properties: close(result) (Type: function ) - Can be used to close...
Read more >Close date picker after selecting the date - MDBootstrap
Hello, Is it possible to close date picker automatically once the date is selected there, so I don't need to click close button...
Read more >API – pickadate.js - Amsul
Open and close the picker holder. To check if it's already open, use the get method. picker.open() picker.close() ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This seems to be working.
this.$refs.dataPicker.showDatepicker = true;In your case, boi87 it should work even if you have the error. Just put @ts ignore before the line so there’s no error. (Works for me)