Skip to content

Commit

Permalink
#14917: Nullify maxOptions for static select fields
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed Feb 22, 2024
1 parent 3ddacf4 commit 7e7e5d5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions netbox/project-static/dist/netbox.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion netbox/project-static/dist/netbox.js.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions netbox/project-static/src/select/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export function initStaticSelects(): void {
)) {
new TomSelect(select, {
...config,
maxOptions: undefined,
});
}
}
Expand All @@ -26,6 +27,7 @@ export function initColorSelects(): void {
for (const select of getElements<HTMLSelectElement>('select.color-select')) {
new TomSelect(select, {
...config,
maxOptions: undefined,
render: {
option: renderColor,
item: renderColor,
Expand Down

0 comments on commit 7e7e5d5

Please sign in to comment.