Skip to content

Commit cfd713f

Browse files
committed
chore: awlays has root of rc-mentions prefixCls
1 parent 9431b0a commit cfd713f

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Mentions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ const Mentions = forwardRef<MentionsRef, MentionsProps>(
605605
value={mergedValue}
606606
allowClear={allowClear}
607607
handleReset={handleReset}
608-
className={className}
608+
className={clsx(prefixCls, className)}
609609
classNames={mentionsClassNames}
610610
disabled={disabled}
611611
ref={holderRef}

tests/__snapshots__/AllowClear.spec.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`should support allowClear should not show icon if defaultValue is undefined, null or empty string 1`] = `
44
<span
5-
class="rc-mentions-affix-wrapper"
5+
class="rc-mentions-affix-wrapper rc-mentions"
66
>
77
<textarea
88
class="rc-textarea"
@@ -24,7 +24,7 @@ exports[`should support allowClear should not show icon if defaultValue is undef
2424

2525
exports[`should support allowClear should not show icon if defaultValue is undefined, null or empty string 2`] = `
2626
<span
27-
class="rc-mentions-affix-wrapper"
27+
class="rc-mentions-affix-wrapper rc-mentions"
2828
>
2929
<textarea
3030
class="rc-textarea"
@@ -46,7 +46,7 @@ exports[`should support allowClear should not show icon if defaultValue is undef
4646

4747
exports[`should support allowClear should not show icon if defaultValue is undefined, null or empty string 3`] = `
4848
<span
49-
class="rc-mentions-affix-wrapper"
49+
class="rc-mentions-affix-wrapper rc-mentions"
5050
>
5151
<textarea
5252
class="rc-textarea"
@@ -68,7 +68,7 @@ exports[`should support allowClear should not show icon if defaultValue is undef
6868

6969
exports[`should support allowClear should not show icon if value is undefined, null or empty string 1`] = `
7070
<span
71-
class="rc-mentions-affix-wrapper"
71+
class="rc-mentions-affix-wrapper rc-mentions"
7272
>
7373
<textarea
7474
class="rc-textarea"
@@ -90,7 +90,7 @@ exports[`should support allowClear should not show icon if value is undefined, n
9090

9191
exports[`should support allowClear should not show icon if value is undefined, null or empty string 2`] = `
9292
<span
93-
class="rc-mentions-affix-wrapper"
93+
class="rc-mentions-affix-wrapper rc-mentions"
9494
>
9595
<textarea
9696
class="rc-textarea"
@@ -112,7 +112,7 @@ exports[`should support allowClear should not show icon if value is undefined, n
112112

113113
exports[`should support allowClear should not show icon if value is undefined, null or empty string 3`] = `
114114
<span
115-
class="rc-mentions-affix-wrapper"
115+
class="rc-mentions-affix-wrapper rc-mentions"
116116
>
117117
<textarea
118118
class="rc-textarea"

0 commit comments

Comments
 (0)