Skip to content

Commit f20a63c

Browse files
committed
fix: use button to handle tag removal
1 parent e310d5c commit f20a63c

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

frontend/web/components/base/select/multi-select/CustomMultiValue.tsx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,21 @@ export const CustomMultiValue = ({
3232
>
3333
{data.label}
3434
</span>
35-
<span
36-
onClick={() => removeProps?.onClick?.(data)}
37-
style={{
35+
<button
36+
{...removeProps}
37+
style={{
3838
cursor: 'pointer',
3939
fontSize: '14px',
4040
lineHeight: '1',
41+
backgroundColor: 'transparent',
42+
border: 'none',
43+
padding: 0,
44+
margin: 0,
45+
color: 'white',
4146
}}
4247
>
4348
×
44-
</span>
49+
</button>
4550
</div>
4651
)
4752
}

0 commit comments

Comments
 (0)