Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

blur input before change secure text entry mode

ammarahm-edb0c76e8a344c
diff --git a/apps/mobile/src/components/Input/index.js b/apps/mobile/src/components/Input/index.js
index 31be15eab..2e768a802 100644
--- a/apps/mobile/src/components/Input/index.js
+++ b/apps/mobile/src/components/Input/index.js
@@ -130,15 +130,15 @@ const Input = ({
};
const style = {
- borderWidth:1,
- borderRadius:5,
+ borderWidth: 1,
+ borderRadius: 5,
borderColor: color,
flexDirection: 'row',
justifyContent: 'space-between',
alignItems: 'center',
flexGrow: 1,
height: 50,
- paddingHorizontal:12,
+ paddingHorizontal: 12
};
const textStyle = {
@@ -148,7 +148,7 @@ const Input = ({
paddingVertical: 0,
paddingBottom: 2.5,
flexGrow: 1,
- height: 50,
+ height: 50
};
return (
@@ -205,6 +205,7 @@ const Input = ({
top={10}
bottom={10}
onPress={() => {
+ fwdRef.current?.blur();
setSecureEntry(!secureEntry);
}}
style={{