Skip to content

Commit

Permalink
fix: touch below element together in smartphone (fix #78) (#86)
Browse files Browse the repository at this point in the history
* fix: touch below element together in smartphone

* chore: apply code review
  • Loading branch information
jajugoguma authored Jul 6, 2021
1 parent d25a285 commit 7e2463c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/js/datepicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,6 +647,7 @@ var DatePicker = defineClass(
*/
_onClickHandler: function(ev) {
var target = util.getTarget(ev);
ev.preventDefault();

if (closest(target, '.' + CLASS_NAME_SELECTABLE)) {
this._updateDate(target);
Expand Down

0 comments on commit 7e2463c

Please sign in to comment.