Skip to content

Commit f80cd88

Browse files
committed
fix: Prevent characterCountElement prop from being set on DOM elements
1 parent a3e8684 commit f80cd88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/select-field/select-field.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const SelectField = React.forwardRef<HTMLSelectElement, SelectFieldProps>(functi
4949
hidden={hidden}
5050
aria-describedby={ariaDescribedBy}
5151
>
52-
{(extraProps) => (
52+
{({ characterCountElement, ...extraProps }) => (
5353
<Box
5454
data-testid="select-wrapper"
5555
className={[

src/text-area/text-area.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const TextArea = React.forwardRef<HTMLTextAreaElement, TextAreaProps>(function T
104104
maxWidth={maxWidth}
105105
maxLength={maxLength}
106106
>
107-
{({ onChange, ...extraProps }) => (
107+
{({ onChange, characterCountElement, ...extraProps }) => (
108108
<Box
109109
width="full"
110110
display="flex"

0 commit comments

Comments
 (0)