Bläddra i källkod

fix: Fixes wrong state in password dialog.

Fixes the following: Warning: A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components

Detected due to failure while moving locked room test.
factor2
damencho 8 månader sedan
förälder
incheckning
4fa426ace0
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      react/features/room-lock/components/PasswordRequiredPrompt.web.tsx

+ 1
- 1
react/features/room-lock/components/PasswordRequiredPrompt.web.tsx Visa fil

@@ -149,7 +149,7 @@ class PasswordRequiredPrompt extends Component<IProps, IState> {
149 149
 
150 150
         // We have used the password so let's clean it.
151 151
         this.setState({
152
-            password: undefined
152
+            password: ''
153 153
         });
154 154
 
155 155
         return true;

Laddar…
Avbryt
Spara