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(rn): adds check for blur function on currentTarget

tmoldovan8x851a996d0e092
diff --git a/react/features/base/toolbox/components/AbstractButton.js b/react/features/base/toolbox/components/AbstractButton.js
index bdd6892d4d..802dfe36ac 100644
--- a/react/features/base/toolbox/components/AbstractButton.js
+++ b/react/features/base/toolbox/components/AbstractButton.js
@@ -257,7 +257,7 @@ export default class AbstractButton<P: Props, S: *> extends Component<P, S> {
afterClick && afterClick(e);
// blur after click to release focus from button to allow PTT.
- e && e.currentTarget && e.currentTarget.blur();
+ e?.currentTarget?.blur && e.currentTarget.blur();
}
/**