From dab753e078f09317e311adadc08c638b1933104f Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Fri, 16 Sep 2022 05:22:05 +0530 Subject: [PATCH 1/3] signInForm - replace setNativeProps with setAttribute --- src/components/SignInPageForm/index.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/SignInPageForm/index.js b/src/components/SignInPageForm/index.js index 4ee95d1cb81e..b38692aaedd5 100644 --- a/src/components/SignInPageForm/index.js +++ b/src/components/SignInPageForm/index.js @@ -8,10 +8,8 @@ class Form extends React.Component { } // Password Managers need these attributes to be able to identify the form elements properly. - this.form.setNativeProps({ - method: 'post', - action: '/', - }); + this.form.setAttribute('method', 'post'); + this.form.setAttribute('action', '/'); } render() { From 0ca051e95b0f830667fdb481d0aa31b7e3b459c5 Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Fri, 16 Sep 2022 05:23:35 +0530 Subject: [PATCH 2/3] TextInputLabel - replace setNativeProps with setAttribute --- src/components/TextInput/TextInputLabel/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TextInput/TextInputLabel/index.js b/src/components/TextInput/TextInputLabel/index.js index b6f8ca998614..29ae00fdcb98 100644 --- a/src/components/TextInput/TextInputLabel/index.js +++ b/src/components/TextInput/TextInputLabel/index.js @@ -8,7 +8,7 @@ class TextInputLabel extends PureComponent { if (!this.props.for) { return; } - this.label.setNativeProps({for: this.props.for}); + this.label.setAttribute('for', this.props.for); } render() { From 5a9850793f174aefea0cc67fda0e763a072fd739 Mon Sep 17 00:00:00 2001 From: Rushat Gabhane Date: Fri, 16 Sep 2022 05:26:07 +0530 Subject: [PATCH 3/3] TextInput - replace setNativeProps with setAttribute --- src/components/TextInput/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/TextInput/index.js b/src/components/TextInput/index.js index 744eedaecbf4..4cbed48ce314 100644 --- a/src/components/TextInput/index.js +++ b/src/components/TextInput/index.js @@ -7,11 +7,11 @@ import * as baseTextInputPropTypes from './baseTextInputPropTypes'; class TextInput extends React.Component { componentDidMount() { if (this.props.disableKeyboard) { - this.textInput.setNativeProps({inputmode: 'none'}); + this.textInput.setAttribute('inputmode', 'none'); } if (this.props.name) { - this.textInput.setNativeProps({name: this.props.name}); + this.textInput.setAttribute('name', this.props.name); } }