Skip to content
This repository was archived by the owner on Jul 9, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions js/jquery.autotab.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
changed: false,
editable: (e.type === 'text' || e.type === 'password' || e.type === 'textarea' || e.type === 'tel' || e.type === 'number' || e.type === 'email' || e.type === 'search' || e.type === 'url'),
filterable: (e.type === 'text' || e.type === 'password' || e.type === 'textarea'),
tabOnSelect: false
tabOnSelect: false,
stopOnBackspace: false
};

// If $.autotab.selectFilterByClas is true and the format not specified, automatically select an element's format based on a matching class name.
Expand Down Expand Up @@ -547,7 +548,7 @@

setSettings(this, { changed: (this.value !== defaults.originalValue) });

if (this.value.length === 0) {
if (this.value.length === 0 && !defaults.stopOnBackspace) {
$(this).trigger('autotab-previous', defaults);
return;
}
Expand Down Expand Up @@ -764,4 +765,4 @@
return $(this).autotab('filter', defaults);
};

})(jQuery);
})(jQuery);