Skip to content

Commit d76d6cf

Browse files
FreddieDevFreddie Chessell
and
Freddie Chessell
authored
Fixed bitwarden suggesting to create new password entries (#1239)
Co-authored-by: Freddie Chessell <[email protected]>
1 parent 7d9af27 commit d76d6cf

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/material-react-table/src/components/inputs/MRT_EditCellTextField.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const MRT_EditCellTextField = <TData extends MRT_RowData>({
155155
...textFieldProps.SelectProps,
156156
}}
157157
inputProps={{
158-
autoComplete: 'new-password', //disable autocomplete and autofill
158+
autoComplete: 'off',
159159
...textFieldProps.inputProps,
160160
}}
161161
onBlur={handleBlur}

packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export const MRT_FilterTextField = <TData extends MRT_RowData>({
316316
) : null,
317317
inputProps: {
318318
'aria-label': filterPlaceholder,
319-
autoComplete: 'new-password', // disable autocomplete and autofill
319+
autoComplete: 'off',
320320
disabled: !!filterChipLabel,
321321
sx: {
322322
textOverflow: 'ellipsis',

packages/material-react-table/src/components/inputs/MRT_GlobalFilterTextField.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export const MRT_GlobalFilterTextField = <TData extends MRT_RowData>({
9494
>
9595
<TextField
9696
inputProps={{
97-
autoComplete: 'new-password', // disable autocomplete and autofill
97+
autoComplete: 'off',
9898
...textFieldProps.inputProps,
9999
}}
100100
onChange={handleChange}

0 commit comments

Comments
 (0)