Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(giphy-integration) Fix input issues (#11601)
Robert Pintiliide294cae929f
diff --git a/react/features/base/premeeting/components/web/InputField.js b/react/features/base/premeeting/components/web/InputField.jsindex 4d69459699..4567d1a6a9 100644--- a/react/features/base/premeeting/components/web/InputField.js+++ b/react/features/base/premeeting/components/web/InputField.js@@ -2,7 +2,6 @@import React, { PureComponent } from 'react';-import { isMobileBrowser } from '../../../environment/utils';import { getFieldValue } from '../../../react';type Props = {@@ -131,11 +130,16 @@ export default class InputField extends PureComponent<Props, State> {onChange = { this._onChange }onFocus = { this._onFocus }onKeyDown = { this._onKeyDown }+ onKeyPress = { this._onKeyPress }placeholder = { this.props.placeHolder }readOnly = { this.props.readOnly }// eslint-disable-next-line react/jsx-no-bind- ref = { inputElement => this.props.autoFocus && isMobileBrowser()- && inputElement && inputElement.focus() }+ ref = { inputElement => {+ if (this.props.autoFocus) {+ inputElement && inputElement.focus();+ setTimeout(() => inputElement && inputElement.focus(), 200);+ }+ } }type = { this.props.type }value = { this.state.value } />);@@ -200,4 +204,14 @@ export default class InputField extends PureComponent<Props, State> {onSubmit && event.key === 'Enter' && onSubmit();}++ /**+ * Stop event propagation on key press.+ *+ * @param {Event} event - Key press event object.+ * @returns {void}+ */+ _onKeyPress(event) {+ event.stopPropagation();+ }}