diff --git a/BookingSystem/templates/booking.html b/BookingSystem/templates/booking.html index 4f7d40a..932c3c8 100644 --- a/BookingSystem/templates/booking.html +++ b/BookingSystem/templates/booking.html @@ -52,7 +52,6 @@

Dersom du ikke finner eleven i listen, må eleven logge inn på nettstedet o ...tomDefaults, maxItems: 1, searchField: ['text', 'classroom'], - selectOnTab: true, render: { option: function (data, escape) { let icon = data.classroom === 'Lærer' ? 'fa-user-circle' : 'fa-user-circle-o'; diff --git a/BookingSystem/templates/templates/tom-select.html b/BookingSystem/templates/templates/tom-select.html index aefe9e2..2d48e27 100644 --- a/BookingSystem/templates/templates/tom-select.html +++ b/BookingSystem/templates/templates/tom-select.html @@ -67,6 +67,7 @@ searchField: ['text'], hidePlaceholder: true, closeAfterSelect: true, + selectOnTab: true, render: { no_results: function (data, escape) { return '
Fant ingen verdier for ' + escape(data.input) + '
';