Skip to content

Commit

Permalink
The password text entry and Hide/Show button overlap for long passwords
Browse files Browse the repository at this point in the history
zulip#5614

input type password can help this issue
  • Loading branch information
Kirtishukla2004 committed Mar 16, 2023
1 parent 705c0b0 commit f56d621
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/PasswordInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,11 @@ export default function PasswordInput(props: Props): Node {

return (
<View>
<Input {...props} secureTextEntry={isHidden} autoCorrect={false} autoCapitalize="none" />
<Input {...props} secureTextEntry={isHidden} autoCorrect={false} autoCapitalize="none" type="password"/>
<Touchable style={styles.showPasswordButton} onPress={handleShow}>
<ZulipTextIntl style={styles.showPasswordButtonText} text={isHidden ? 'show' : 'hide'} />
</Touchable>

</View>
);
}

0 comments on commit f56d621

Please sign in to comment.