mengxiong10 / vue2-datepicker

A datepicker / datetimepicker component for Vue2
https://mengxiong10.github.io/vue2-datepicker/index.html
MIT License
1.51k stars 404 forks source link

The popup does not close when you click on the treeselect library #763

Open Khazae opened 1 month ago

Khazae commented 1 month ago

Vue2-datepicker version: Last version

When clicking on the treeselect library, the datepicker does not close.

The problem is due to mousedown it is necessary to change it to a click.

this._clickoutEvent = 'ontouchend' in document ? 'touchstart' : 'mousedown';

document.addEventListener(this._clickoutEvent, this.handleClickOutside);