diff --git a/netbox/project-static/dist/netbox.js b/netbox/project-static/dist/netbox.js index 39fa5b527..1cba69a9d 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 12186fbbd..23f292a66 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/api/apiSelect.ts b/netbox/project-static/src/select/api/apiSelect.ts index dc9525c9c..d88e73f11 100644 --- a/netbox/project-static/src/select/api/apiSelect.ts +++ b/netbox/project-static/src/select/api/apiSelect.ts @@ -22,6 +22,13 @@ import type { Stringifiable } from 'query-string'; import type { Option } from 'slim-select/dist/data'; import type { Trigger, PathFilter, ApplyMethod, QueryFilter } from './types'; +// Empty placeholder option. +const EMPTY_PLACEHOLDER = { + value: '', + text: '', + placeholder: true, +} as Option; + // Attributes which if truthy should render the option disabled. const DISABLED_ATTRIBUTES = ['occupied'] as string[]; @@ -45,7 +52,11 @@ export class APISelect { */ public readonly placeholder: string; - public readonly emptyOption: Nullable