Skip to content

Commit 01d2fdf

Browse files
authored
Fix: forward autoComplete prop to input-based components (#8456)
1 parent 850960d commit 01d2fdf

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

components/lib/inputmask/InputMask.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ export const InputMask = React.memo(
634634
<InputText
635635
ref={elementRef}
636636
autoFocus={props.autoFocus}
637+
autoComplete={props.autoComplete}
637638
id={props.id}
638639
type={props.type}
639640
name={props.name}

components/lib/inputtext/InputText.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ export const InputText = React.memo(
8181
const rootProps = mergeProps(
8282
{
8383
className: classNames(props.className, cx('root', { context, isFilled })),
84+
autoComplete: props.autoComplete,
8485
onBeforeInput: onBeforeInput,
8586
onInput: onInput,
8687
onKeyDown: onKeyDown,

components/lib/inputtextarea/InputTextarea.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ export const InputTextarea = React.memo(
139139
{
140140
ref: elementRef,
141141
className: classNames(props.className, cx('root', { context, isFilled })),
142+
autoComplete: props.autoComplete,
142143
onFocus: onFocus,
143144
onBlur: onBlur,
144145
onKeyUp: onKeyUp,

components/lib/password/Password.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,7 @@ export const Password = React.memo(
461461
{
462462
ref: inputRef,
463463
id: props.inputId,
464+
autoComplete: props.autoComplete,
464465
...inputProps,
465466
className: classNames(props.inputClassName, cx('input')),
466467
onBlur: onBlur,

0 commit comments

Comments
 (0)