diff --git a/demo/assets/js/testable.js b/demo/assets/js/testable.js index 25644e9..4136354 100644 --- a/demo/assets/js/testable.js +++ b/demo/assets/js/testable.js @@ -507,6 +507,11 @@ const test4 = typeahead({ wrapper: 'typeahead-standalone typeahead-test-four', }, highlight: true, + // autoSelect: true, + onSubmit: (e) => { + e.preventDefault(); + document.querySelector('#input-4-submit-val').innerHTML = e.target.value; + }, templates: { suggestion: (item, resultSet) => { return ` @@ -982,5 +987,3 @@ const test19 = typeahead({ `, }, }); - - diff --git a/demo/dev.esm.html b/demo/dev.esm.html index 74a2bdf..b706bf7 100644 --- a/demo/dev.esm.html +++ b/demo/dev.esm.html @@ -175,6 +175,9 @@