Skip to content

Commit e76d6f8

Browse files
committed
feat: add show search className
1 parent 4334513 commit e76d6f8

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

src/generate.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ export default function generateSelector<
780780
[`${prefixCls}-loading`]: loading,
781781
[`${prefixCls}-open`]: mergedOpen,
782782
[`${prefixCls}-customize-input`]: customizeInputElement,
783+
[`${prefixCls}-show-search`]: mergedShowSearch,
783784
});
784785

785786
return (

tests/__snapshots__/Combobox.test.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
exports[`Select.Combobox renders correctly 1`] = `
44
<div
5-
class="rc-select rc-select-single"
5+
class="rc-select rc-select-single rc-select-show-search"
66
>
77
<div
88
class="rc-select-selector"

tests/__snapshots__/Select.test.tsx.snap

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ exports[`Select.Basic render renders aria-attributes correctly 1`] = `
220220
<div
221221
aria-label="some-label"
222222
aria-labelledby="test-id"
223-
class="antd select-test antd-single antd-allow-clear antd-show-arrow"
223+
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-show-search"
224224
>
225225
<div
226226
class="antd-selector"
@@ -274,7 +274,7 @@ exports[`Select.Basic render renders aria-attributes correctly 1`] = `
274274

275275
exports[`Select.Basic render renders correctly 1`] = `
276276
<div
277-
class="antd select-test antd-single antd-allow-clear antd-show-arrow"
277+
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-show-search"
278278
>
279279
<div
280280
class="antd-selector"
@@ -328,7 +328,7 @@ exports[`Select.Basic render renders correctly 1`] = `
328328

329329
exports[`Select.Basic render renders data-attributes correctly 1`] = `
330330
<div
331-
class="antd select-test antd-single antd-allow-clear antd-show-arrow"
331+
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-show-search"
332332
data-id="12345"
333333
data-test="test-id"
334334
>
@@ -384,7 +384,7 @@ exports[`Select.Basic render renders data-attributes correctly 1`] = `
384384

385385
exports[`Select.Basic render renders disabled select correctly 1`] = `
386386
<div
387-
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-disabled"
387+
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-disabled antd-show-search"
388388
>
389389
<div
390390
class="antd-selector"
@@ -439,7 +439,7 @@ exports[`Select.Basic render renders disabled select correctly 1`] = `
439439

440440
exports[`Select.Basic render renders dropdown correctly 1`] = `
441441
<div
442-
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-open"
442+
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-open antd-show-search"
443443
>
444444
<div
445445
class="antd-selector"
@@ -612,7 +612,7 @@ exports[`Select.Basic render renders dropdown correctly 1`] = `
612612

613613
exports[`Select.Basic render renders role prop correctly 1`] = `
614614
<div
615-
class="antd select-test antd-single antd-allow-clear antd-show-arrow"
615+
class="antd select-test antd-single antd-allow-clear antd-show-arrow antd-show-search"
616616
role="button"
617617
>
618618
<div

tests/__snapshots__/Tags.test.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
exports[`Select.Tags OptGroup renders correctly 1`] = `
44
<div>
55
<div
6-
class="rc-select rc-select-multiple rc-select-open"
6+
class="rc-select rc-select-multiple rc-select-open rc-select-show-search"
77
>
88
<div
99
class="rc-select-selector"
@@ -200,7 +200,7 @@ exports[`Select.Tags OptGroup renders correctly 1`] = `
200200

201201
exports[`Select.Tags render truncates values by maxTagTextLength 1`] = `
202202
<div
203-
class="rc-select rc-select-multiple"
203+
class="rc-select rc-select-multiple rc-select-show-search"
204204
>
205205
<div
206206
class="rc-select-selector"

0 commit comments

Comments
 (0)