closed event not firing when clicking outside calendar without selecting a value
See original GitHub issueHello,
I’m having troubles when trying to work with @closed event.
<datepicker :language='language' minimumView="month" maximumView="month" format="MM/yyyy"
@closeCalendar="myAlert('closeCalendar')"
@opened="myAlert('opened')"
@closed="myAlert('closed')" input-class="col-12 form-control"/>
When I click on the input, @opened is triggers my function, but when I click outside without selecting any value, the functions attached to @closed or @closeCalendar are never invoked.
If I select an value, the @closed is triggered and my function is invoked.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:9
- Comments:8
Top Results From Across the Web
Calling a function when the datepicker closes, when I click ...
Here is the solution to your issues: You can set shouldCloseOnSelect to false to close date picker only when its click outside.
Read more >Datepicker Widget - jQuery UI API Documentation
This widget manipulates its element's value programmatically, therefore a native change event may not be fired when the element's value changes. Creating a ......
Read more >How to detect a click outside a React component
In this tutorial, learn a few ways how to implement click detection outside of both functional and class-based React components.
Read more >Date Range Picker — JavaScript Date & Time Picker Library
This option will be highlighted whenever the current date range selection does not match one of the predefined ranges. Clicking it will display...
Read more >Select function in Power Apps - Power Platform - Microsoft Learn
You can leave the default values for the OnSelect properties of most controls in the gallery if you want them to perform the...
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
can we merge this PR?
Does anyone know a workaround?
EDIT: https://github.com/simplesmiler/vue-clickaway worked for me.