Skip to content

Commit 4008630

Browse files
author
Vasilii Burlacu
committed
Disabled autocomplete for datepicker (calendar) input field
1 parent 00f4f7d commit 4008630

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
@@ -379,6 +379,9 @@
379379
.addClass('v-middle')
380380
.text('') // Remove jQuery UI datepicker generated image
381381
.append('<span>' + pickerButtonText + '</span>');
382+
383+
$(element).attr('autocomplete', 'off');
384+
382385
this._setCurrentDate(element);
383386
},
384387

0 commit comments

Comments
 (0)