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(password) use the numeric input mode when only digits are required
Saúl Ibarra Corretgé48e1f443ea3b
diff --git a/react/features/base/ui/components/web/Input.tsx b/react/features/base/ui/components/web/Input.tsxindex 712398b2e9..03b48fe641 100644--- a/react/features/base/ui/components/web/Input.tsx+++ b/react/features/base/ui/components/web/Input.tsx@@ -21,6 +21,7 @@ interface IProps extends IInputProps {maxValue?: number;minRows?: number;minValue?: number;+ mode?: 'text' | 'none' | 'decimal' | 'numeric' | 'tel' | 'search' | ' email' | 'url';name?: string;onBlur?: (e: any) => void;onFocus?: (event: React.FocusEvent) => void;@@ -162,6 +163,7 @@ const Input = React.forwardRef<any, IProps>(({maxRows,minValue,minRows,+ mode,name,onBlur,onChange,@@ -223,6 +225,7 @@ const Input = React.forwardRef<any, IProps>(({data-testid = { testId }disabled = { disabled }{ ...(id ? { id } : {}) }+ { ...(mode ? { inputmode: mode } : {}) }{ ...(type === 'number' ? { max: maxValue } : {}) }maxLength = { maxLength }{ ...(type === 'number' ? { min: minValue } : {}) }diff --git a/react/features/security/components/security-dialog/web/PasswordForm.tsx b/react/features/security/components/security-dialog/web/PasswordForm.tsxindex 8ee97ae0c1..5fb2eb36c4 100644--- a/react/features/security/components/security-dialog/web/PasswordForm.tsx+++ b/react/features/security/components/security-dialog/web/PasswordForm.tsx@@ -140,22 +140,29 @@ class PasswordForm extends Component<IProps, IState> {* @returns {ReactElement}*/_renderPasswordField() {- if (this.props.editEnabled) {- let placeHolderText = this.props.t('dialog.password');+ const {+ editEnabled,+ passwordNumberOfDigits,+ t+ } = this.props;- if (this.props.passwordNumberOfDigits) {+ if (editEnabled) {+ let placeHolderText = t('dialog.password');++ if (passwordNumberOfDigits) {placeHolderText = this.props.t('passwordDigitsOnly', {- number: this.props.passwordNumberOfDigits });+ number: passwordNumberOfDigits });}return (<divclassName = 'info-password-form'><Input- accessibilityLabel = { this.props.t('info.addPassword') }+ accessibilityLabel = { t('info.addPassword') }autoFocus = { true }id = 'info-password-input'- maxLength = { this.props.passwordNumberOfDigits }+ maxLength = { passwordNumberOfDigits }+ mode = { passwordNumberOfDigits ? 'numeric' : undefined }onChange = { this._onEnteredPasswordChange }onKeyPress = { this._onKeyPress }placeholder = { placeHolderText }