mirror of
https://github.com/documenso/documenso.git
synced 2026-08-25 15:52:29 +10:00
fix: add type button to multiselect remove and clear buttons (#3256)
This commit is contained in:
@@ -142,6 +142,7 @@ export function MultiSelectCombobox<T = OptionValue>({
|
|||||||
{showClearButton && !loading && (
|
{showClearButton && !loading && (
|
||||||
<div className="absolute top-0 right-8 bottom-0 flex items-center justify-center">
|
<div className="absolute top-0 right-8 bottom-0 flex items-center justify-center">
|
||||||
<button
|
<button
|
||||||
|
type="button"
|
||||||
className="flex h-4 w-4 items-center justify-center rounded-full bg-muted-foreground/20"
|
className="flex h-4 w-4 items-center justify-center rounded-full bg-muted-foreground/20"
|
||||||
onClick={() => onChange([])}
|
onClick={() => onChange([])}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -431,6 +431,7 @@ const MultiSelect = ({
|
|||||||
>
|
>
|
||||||
{option.label}
|
{option.label}
|
||||||
<button
|
<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"
|
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) => {
|
onKeyDown={(e) => {
|
||||||
if (e.key === 'Enter') {
|
if (e.key === 'Enter') {
|
||||||
|
|||||||
Reference in New Issue
Block a user