{
+ onChange(null);
+ setSearch('');
+ }}
+ size="xs"
+ variant="subtle"
+ />
+ ) : undefined
+ }
+ onChange={(e) => setSearch(e.currentTarget.value)}
+ placeholder={placeholder}
+ rightSection={
+
+ {search ? (
+ setSearch('')}
+ size="xs"
+ variant="subtle"
+ />
+ ) : (
+
+ )}
+
+ }
+ styles={{ label: { width: '100%' } }}
+ value={search}
+ />
+ {
+ const element = e.currentTarget as HTMLDivElement;
+ if (element.focus) {
+ element.focus({ preventScroll: true });
+ }
+ }}
+ ref={listContainerRef}
+ style={{ height: `${height}px` }}
+ tabIndex={0}
+ >
+ {stableOptions.length === 0 ? (
+
+
+ {t('common.noResultsFromQuery', { postProcess: 'sentenceCase' })}
+
+
+ ) : (
+
+ )}
+
+ {selectedOptions.length > 0 && (
+
+ {selectedOptions.map((option) => (
+ handleDeselect(option.value)}
+ wrap="nowrap"
+ >
+
+
+ {option.label}
+
+
+ ))}
+
+ )}
+