Skip to content

Commit ff4b005

Browse files
author
Vasilii Burlacu
committed
Disabled autocomplete for datepicker (calendar) input field
1 parent cc1e013 commit ff4b005

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/web/mage/calendar.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,9 @@
377377
.addClass('v-middle')
378378
.text('') // Remove jQuery UI datepicker generated image
379379
.append('<span>' + pickerButtonText + '</span>');
380+
381+
$(element).attr('autocomplete', 'off');
382+
380383
this._setCurrentDate(element);
381384
},
382385

0 commit comments

Comments
 (0)