[Glitch] Fix ugly Combobox loading state

Port e3c0883d32 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
diondiondion authored and Claire committed 2026-04-22 20:35:02 +02:00
1 parent c5f07296af
commit a7bbc0872a
3 files changed
+41 -4

No files matched your search

@@ -331,6 +331,10 @@ const TopicField: React.FC = () => {
[topic],
);
const isCurrentTopicOnlySuggestion =
tags.length === 1 && tags[0]?.id === 'new';
const hideTagSuggestions = !tags.length || isCurrentTopicOnlySuggestion;
return (
<ComboboxField
required={false}
@@ -369,7 +373,7 @@ const TopicField: React.FC = () => {
}
: undefined
}
suppressMenu={!tags.length}
suppressMenu={hideTagSuggestions}
/>
);
};