Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(shared-video): reset error state on input change

puneetnith28cc3d1ab979cd
diff --git a/react/features/shared-video/components/web/SharedVideoDialog.tsx b/react/features/shared-video/components/web/SharedVideoDialog.tsx
index e35fbe102b..dda854acf0 100644
--- a/react/features/shared-video/components/web/SharedVideoDialog.tsx
+++ b/react/features/shared-video/components/web/SharedVideoDialog.tsx
@@ -41,8 +41,9 @@ class SharedVideoDialog extends AbstractSharedVideoDialog<any> {
*/
_onChange(value: string) {
this.setState({
- value,
- okDisabled: !value
+ error: false,
+ okDisabled: !value,
+ value
});
}