From b9a89853b12c1e45c9957a4d23ef9f8932cdb089 Mon Sep 17 00:00:00 2001 From: Freddie Chessell Date: Sat, 7 Sep 2024 16:38:14 +0100 Subject: [PATCH] Fixed bitwarden suggesting to create new password entries --- .../src/components/inputs/MRT_EditCellTextField.tsx | 2 +- .../src/components/inputs/MRT_FilterTextField.tsx | 2 +- .../src/components/inputs/MRT_GlobalFilterTextField.tsx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/material-react-table/src/components/inputs/MRT_EditCellTextField.tsx b/packages/material-react-table/src/components/inputs/MRT_EditCellTextField.tsx index 10173111e..cb644c380 100644 --- a/packages/material-react-table/src/components/inputs/MRT_EditCellTextField.tsx +++ b/packages/material-react-table/src/components/inputs/MRT_EditCellTextField.tsx @@ -155,7 +155,7 @@ export const MRT_EditCellTextField = ({ ...textFieldProps.SelectProps, }} inputProps={{ - autoComplete: 'new-password', //disable autocomplete and autofill + autoComplete: 'off', ...textFieldProps.inputProps, }} onBlur={handleBlur} diff --git a/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx b/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx index 860bcb586..bd21e44cc 100644 --- a/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx +++ b/packages/material-react-table/src/components/inputs/MRT_FilterTextField.tsx @@ -316,7 +316,7 @@ export const MRT_FilterTextField = ({ ) : null, inputProps: { 'aria-label': filterPlaceholder, - autoComplete: 'new-password', // disable autocomplete and autofill + autoComplete: 'off', disabled: !!filterChipLabel, sx: { textOverflow: 'ellipsis', diff --git a/packages/material-react-table/src/components/inputs/MRT_GlobalFilterTextField.tsx b/packages/material-react-table/src/components/inputs/MRT_GlobalFilterTextField.tsx index 50a7835c5..4107b2103 100644 --- a/packages/material-react-table/src/components/inputs/MRT_GlobalFilterTextField.tsx +++ b/packages/material-react-table/src/components/inputs/MRT_GlobalFilterTextField.tsx @@ -94,7 +94,7 @@ export const MRT_GlobalFilterTextField = ({ >