Skip to content

Commit 873cc10

Browse files
committed
Add missing innerProps
1 parent 464e0b0 commit 873cc10

File tree

6 files changed

+14
-9
lines changed

6 files changed

+14
-9
lines changed

src/chakra-components/containers.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export const SelectContainer = <
4343

4444
return (
4545
<Box
46+
{...innerProps}
4647
className={cx(
4748
{
4849
"--is-disabled": isDisabled,
@@ -52,7 +53,6 @@ export const SelectContainer = <
5253
className
5354
)}
5455
sx={sx}
55-
{...innerProps}
5656
>
5757
{children}
5858
</Box>
@@ -72,6 +72,7 @@ export const ValueContainer = <
7272
cx,
7373
isMulti,
7474
hasValue,
75+
innerProps,
7576
selectProps: { size, chakraStyles },
7677
} = props;
7778

@@ -98,6 +99,7 @@ export const ValueContainer = <
9899

99100
return (
100101
<Box
102+
{...innerProps}
101103
className={cx(
102104
{
103105
"value-container": true,

src/chakra-components/group.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ const Group = <
2323
headingProps,
2424
label,
2525
selectProps,
26+
innerProps,
2627
} = props;
2728

2829
const { chakraStyles } = selectProps;
@@ -32,7 +33,7 @@ const Group = <
3233
: {};
3334

3435
return (
35-
<Box className={cx({ group: true }, className)} sx={sx}>
36+
<Box {...innerProps} className={cx({ group: true }, className)} sx={sx}>
3637
<Heading
3738
{...headingProps}
3839
selectProps={selectProps}

src/chakra-components/indicators.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export const ClearIndicator = <
178178

179179
return (
180180
<Box
181+
{...innerProps}
181182
role="button"
182183
className={cx(
183184
{
@@ -189,7 +190,6 @@ export const ClearIndicator = <
189190
sx={sx}
190191
data-focused={isFocused ? true : undefined}
191192
aria-label="Clear selected options"
192-
{...innerProps}
193193
>
194194
{children || <CrossIcon sx={iconSx} />}
195195
</Box>
@@ -231,6 +231,7 @@ export const LoadingIndicator = <
231231

232232
return (
233233
<Spinner
234+
{...innerProps}
234235
className={cx(
235236
{
236237
indicator: true,
@@ -239,7 +240,6 @@ export const LoadingIndicator = <
239240
className
240241
)}
241242
sx={sx}
242-
{...innerProps}
243243
size={propsSpinnerSize || spinnerSize}
244244
color={color}
245245
emptyColor={emptyColor}

src/chakra-components/menu.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ const Menu = <Option, IsMulti extends boolean, Group extends GroupBase<Option>>(
4747

4848
return (
4949
<Box
50+
{...innerProps}
5051
ref={innerRef}
5152
className={cx({ menu: true }, className)}
5253
sx={sx}
53-
{...innerProps}
5454
>
5555
<StylesProvider value={menuStyles}>{children}</StylesProvider>
5656
</Box>
@@ -71,6 +71,7 @@ const MenuList = <
7171
children,
7272
maxHeight,
7373
isMulti,
74+
innerProps,
7475
selectProps: { size, chakraStyles },
7576
} = props;
7677

@@ -91,6 +92,7 @@ const MenuList = <
9192

9293
return (
9394
<Box
95+
{...innerProps}
9496
className={cx(
9597
{
9698
"menu-list": true,
@@ -146,6 +148,7 @@ const LoadingMessage = <
146148

147149
return (
148150
<Box
151+
{...innerProps}
149152
className={cx(
150153
{
151154
"menu-notice": true,
@@ -154,7 +157,6 @@ const LoadingMessage = <
154157
className
155158
)}
156159
sx={sx}
157-
{...innerProps}
158160
>
159161
{children}
160162
</Box>
@@ -201,6 +203,7 @@ const NoOptionsMessage = <
201203

202204
return (
203205
<Box
206+
{...innerProps}
204207
className={cx(
205208
{
206209
"menu-notice": true,
@@ -209,7 +212,6 @@ const NoOptionsMessage = <
209212
className
210213
)}
211214
sx={sx}
212-
{...innerProps}
213215
>
214216
{children}
215217
</Box>

src/chakra-components/option.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const Option = <
9999

100100
return (
101101
<Box
102+
{...innerProps}
102103
role="button"
103104
className={cx(
104105
{
@@ -111,7 +112,6 @@ const Option = <
111112
)}
112113
sx={sx}
113114
ref={innerRef}
114-
{...innerProps}
115115
data-disabled={isDisabled ? true : undefined}
116116
aria-disabled={isDisabled ? true : undefined}
117117
>

src/chakra-components/placeholder.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ const Placeholder = <
3434

3535
return (
3636
<Box
37+
{...innerProps}
3738
className={cx(
3839
{
3940
placeholder: true,
4041
},
4142
className
4243
)}
4344
sx={sx}
44-
{...innerProps}
4545
>
4646
{children}
4747
</Box>

0 commit comments

Comments
 (0)