Skip to content

Commit

Permalink
fix: cannot click meridiem radio button of timepicker (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
jajugoguma authored Sep 30, 2021
1 parent 4f889a8 commit c1e1db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/datepicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,9 +648,9 @@ var DatePicker = defineClass(
*/
_onClickHandler: function(ev) {
var target = util.getTarget(ev);
ev.preventDefault();

if (closest(target, '.' + CLASS_NAME_SELECTABLE)) {
ev.preventDefault();
this._updateDate(target);
} else if (closest(target, SELECTOR_CALENDAR_TITLE)) {
this.drawUpperCalendar(this._date);
Expand Down

0 comments on commit c1e1db4

Please sign in to comment.