uxsolutions / bootstrap-datepicker

A datepicker for twitter bootstrap (@twbs)
Apache License 2.0
12.67k stars 6.06k forks source link

Clicking outside the datepicker to close it uses mousedown, so won't work on mobile #1613

Open peterjwest opened 9 years ago

peterjwest commented 9 years ago

I can't see any immediately obvious reason why this click wouldn't work as a direct substitute.

gchtr commented 9 years ago

This was already solved in Release 1.3.0 #481, but somehow now it’s not in the code anymore. See also 511c1b0241eb9804892df6f9388e0afd00107253.

hebbet commented 9 years ago

@peterjwest: what version of datepicker do you use?

peterjwest commented 9 years ago

Just looking through the code on master and latest release https://github.com/eternicode/bootstrap-datepicker/blob/v1.5.0/js/bootstrap-datepicker.js#L423

Azaret commented 9 years ago

This #820 and this #1284.

Azaret commented 9 years ago

I guess this PR was merged a bit too quickly. The issue was more that the check to see if touchstart was out of the datepicker wasn't working. I can look into this @hebbet

Azaret commented 9 years ago

After few tests, it looks like before #1284, it worked as expected, meaning the picker close only when the screen is touched out of the picker.

So the call here would be to choose:

Imo it would be interesting to work more on the mobile integration, maybe open a new ticket for this, there is much to say.

35grain commented 2 years ago

This is still open? o.o