fix: add type button to multiselect remove and clear buttons (#3256)

This commit is contained in:
misinierijon4-debug
2026-08-24 16:22:48 +10:00
committed by GitHub
parent 75330166cc
commit ead3104896
2 changed files with 2 additions and 0 deletions
@@ -142,6 +142,7 @@ export function MultiSelectCombobox<T = OptionValue>({
{showClearButton && !loading && (
<div className="absolute top-0 right-8 bottom-0 flex items-center justify-center">
<button
type="button"
className="flex h-4 w-4 items-center justify-center rounded-full bg-muted-foreground/20"
onClick={() => onChange([])}
>
+1
View File
@@ -431,6 +431,7 @@ const MultiSelect = ({
>
{option.label}
<button
type="button"
className="absolute -inset-y-px -end-px flex size-7 items-center justify-center rounded-e-md border border-transparent p-0 text-muted-foreground/80 outline-none transition-[color,box-shadow] hover:text-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50"
onKeyDown={(e) => {
if (e.key === 'Enter') {