Skip to content

Commit

Permalink
Restore search in select lists
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminjonard committed May 1, 2024
1 parent a5642b7 commit 170b115
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
4 changes: 0 additions & 4 deletions assets/controllers/select/compact-visibility_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@ import { htmlStringToDomElement, getVisibilityIcon } from "../../js/utils";

/* stimulusFetch: 'lazy' */
export default class extends DefaultController {
minimumResultsForSearch() {
return 'Infinity';
}

templateSelection(visibility) {
if (!visibility.id) {
return htmlStringToDomElement('<span class="select-placeholder">' + Translator.trans('select2.none') + '</span>');
Expand Down
1 change: 0 additions & 1 deletion assets/controllers/select/default_controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default class extends Controller {

loadSelect() {
this.select2 = new TsSelect2(this.element, {
minimumResultsForSearch: this.minimumResultsForSearch,
language: {
noResults: function () {
return Translator.trans('select2.no_results');
Expand Down

0 comments on commit 170b115

Please sign in to comment.