Skip to content

Commit

Permalink
Don't limit number of matches
Browse files Browse the repository at this point in the history
  • Loading branch information
momijizukamori committed Jun 19, 2024
1 parent 87a5c07 commit 9934d85
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/js/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ $(() => {
});
searchJs.filters = [];

let selectSettings = {closeAfterSelect: true, plugins: ['remove_button'], sortField:[{field:'$order'},{field:'$score'}]};
let selectSettings = {
closeAfterSelect: true,
plugins: ['remove_button'],
sortField:[{field:'$order'},{field:'$score'}],
maxOptions: null};
document.querySelectorAll('.form-control-chosen').forEach((el)=>{
let tom = new TomSelect(el, selectSettings);
tom.on('change', (val) => {
Expand Down

0 comments on commit 9934d85

Please sign in to comment.