diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 4543f2e8d..233218feb 100644 Binary files a/netbox/project-static/dist/netbox.js and b/netbox/project-static/dist/netbox.js differ diff --git a/netbox/project-static/dist/netbox.js.map b/netbox/project-static/dist/netbox.js.map index 3effdf7d6..65d7ceaeb 100644 Binary files a/netbox/project-static/dist/netbox.js.map and b/netbox/project-static/dist/netbox.js.map differ diff --git a/netbox/project-static/src/tomSelect.ts b/netbox/project-static/src/tomSelect.ts index abda429f3..f890d37e1 100644 --- a/netbox/project-static/src/tomSelect.ts +++ b/netbox/project-static/src/tomSelect.ts @@ -5,7 +5,9 @@ import TomSelect from 'tom-select'; function initStaticSelects(): void { for (const select of getElements('select:not(.api-select):not(.color-select)')) { - new TomSelect(select, {}); + new TomSelect(select, { + plugins: ['clear_button'] + }); } } @@ -15,6 +17,7 @@ function initDynamicSelects(): void { for (const select of getElements('select.api-select')) { const api_url = select.getAttribute('data-url') as string; new TomSelect(select, { + plugins: ['clear_button'], valueField: 'id', labelField: 'display', searchField: ['name'],