Skip to content

Commit

Permalink
selectOnTab enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
sondregronas committed Aug 15, 2023
1 parent 02c54b7 commit 59e21eb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion BookingSystem/templates/booking.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ <h3>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';
Expand Down
1 change: 1 addition & 0 deletions BookingSystem/templates/templates/tom-select.html
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
searchField: ['text'],
hidePlaceholder: true,
closeAfterSelect: true,
selectOnTab: true,
render: {
no_results: function (data, escape) {
return '<div class="no-results">Fant ingen verdier for <strong>' + escape(data.input) + '</strong></div>';
Expand Down

0 comments on commit 59e21eb

Please sign in to comment.