Skip to content

Commit 5d8a59e

Browse files
authored
feat: prop type of select should contain Boolean (#6691)
1 parent 823b3dd commit 5d8a59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

components/select/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export const selectProps = () => ({
3636
'backfill',
3737
]),
3838
value: {
39-
type: [Array, Object, String, Number] as PropType<SelectValue>,
39+
type: [Array, Object, String, Number, Boolean] as PropType<SelectValue>,
4040
},
4141
defaultValue: {
42-
type: [Array, Object, String, Number] as PropType<SelectValue>,
42+
type: [Array, Object, String, Number, Boolean] as PropType<SelectValue>,
4343
},
4444
notFoundContent: PropTypes.any,
4545
suffixIcon: PropTypes.any,

0 commit comments

Comments
 (0)