diff --git a/lib/web/mage/calendar.js b/lib/web/mage/calendar.js index 7ddcb7e32f1b0..4d09a5c0fbd84 100644 --- a/lib/web/mage/calendar.js +++ b/lib/web/mage/calendar.js @@ -66,6 +66,9 @@ * Widget calendar */ $.widget('mage.calendar', { + options: { + autoComplete: true + }, /** * Merge global options with options passed to widget invoke @@ -378,6 +381,8 @@ .text('') // Remove jQuery UI datepicker generated image .append('' + pickerButtonText + ''); + $(element).attr('autocomplete', this.options.autoComplete ? 'on' : 'off'); + this._setCurrentDate(element); },