mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 03:12:29 +00:00
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.
This commit is contained in:
@@ -149,7 +149,7 @@ class PasswordRequiredPrompt extends Component<IProps, IState> {
|
||||
|
||||
// We have used the password so let's clean it.
|
||||
this.setState({
|
||||
password: undefined
|
||||
password: ''
|
||||
});
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user