Skip to content

Commit

Permalink
fix: hide datepicker after picking date
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Mar 14, 2024
1 parent 51f1a5f commit 0a9f6ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/public/js/frappe/form/controls/date.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ frappe.ui.form.ControlDate = class ControlDate extends frappe.ui.form.ControlDat
// so explicitly bind the event
this.datepicker.$datepicker.find('[data-action="today"]').click(() => {
this.datepicker.selectDate(this.get_now_date());
this.datepicker.hide();
});
}
update_datepicker_position() {
Expand Down

0 comments on commit 0a9f6ca

Please sign in to comment.