fixed continuous on change trigger for date inputs

$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 20:59:53 +02:00 committed by GitHub
parent cf06aa783e
commit 06cbf0681e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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