fix: continuous on change trigger for date inputs (#1325)

$element.val() !== $element.attr("value") are never be the same on inputs with type date. Value will be just empty.
This commit is contained in:
Volker Nauruhn 2018-06-12 21:09:56 +02:00 committed by Federico Zivolo
parent cf06aa783e
commit 687cb32e15

View File

@ -61,7 +61,7 @@ const Autofill = ($ => {
let $inputs = $(event.currentTarget) let $inputs = $(event.currentTarget)
.closest("form") .closest("form")
.find("input") .find("input")
.not("[type=file]"); .not("[type=file], [type=date]");
focused = setInterval(() => { focused = setInterval(() => {
$inputs.each((index, element) => { $inputs.each((index, element) => {
let $element = $(element); let $element = $(element);