diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 6650f0fab..01c14cf5c 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 5acc0a9c7..0eda793ea 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/select/config.ts b/netbox/project-static/src/select/config.ts index c655b5271..0b0d6f294 100644 --- a/netbox/project-static/src/select/config.ts +++ b/netbox/project-static/src/select/config.ts @@ -5,11 +5,13 @@ interface PluginConfig { export function getPlugins(element: HTMLSelectElement): object { const plugins: PluginConfig = {}; - // Enable "clear all" button - plugins.clear_button = { - html: (data: Dict) => - ``, - }; + // Enable "clear all" button for non-required fields + if (!element.required) { + plugins.clear_button = { + html: (data: Dict) => + ``, + }; + } // Enable individual "remove" buttons for items on multi-select fields if (element.hasAttribute('multiple')) {