mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-27 19:27:33 +02:00
Prevent TomSelect from initializing on <select> elements with a size
This commit is contained in:
2
netbox/project-static/dist/netbox.js
vendored
2
netbox/project-static/dist/netbox.js
vendored
File diff suppressed because one or more lines are too long
2
netbox/project-static/dist/netbox.js.map
vendored
2
netbox/project-static/dist/netbox.js.map
vendored
File diff suppressed because one or more lines are too long
@@ -7,7 +7,7 @@ import { getElements } from '../util';
|
|||||||
// Initialize <select> elements with statically-defined options
|
// Initialize <select> elements with statically-defined options
|
||||||
export function initStaticSelects(): void {
|
export function initStaticSelects(): void {
|
||||||
for (const select of getElements<HTMLSelectElement>(
|
for (const select of getElements<HTMLSelectElement>(
|
||||||
'select:not(.api-select):not(.color-select)',
|
'select:not(.api-select):not(.color-select):not([size])',
|
||||||
)) {
|
)) {
|
||||||
new TomSelect(select, {
|
new TomSelect(select, {
|
||||||
...config,
|
...config,
|
||||||
|
|||||||
Reference in New Issue
Block a user