Browse Source

fix: Tag component close icon display bug (#5956)

Co-authored-by: Tony <tony.chen@omnichat.ai>
pull/5966/head
manny3 2 years ago committed by GitHub
parent
commit
b35f63788d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      components/tag/index.tsx

4
components/tag/index.tsx

@ -87,9 +87,9 @@ const Tag = defineComponent({
const renderCloseIcon = () => {
if (closable) {
return closeIcon ? (
<div class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick}>
<span class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick}>
{closeIcon}
</div>
</span>
) : (
<CloseOutlined class={`${prefixCls.value}-close-icon`} onClick={handleCloseClick} />
);

Loading…
Cancel
Save