Prevent TomSelect from initializing on <select> elements with a size

This commit is contained in:
Jeremy Stretch 2024-02-09 15:37:20 -05:00
parent 3aadf59b15
commit eef79d7cbc
3 changed files with 1 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -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,