Skip to content

Commit

Permalink
fix: close comment input keyboard on done
Browse files Browse the repository at this point in the history
  • Loading branch information
pwltr committed Sep 10, 2024
1 parent 215dec5 commit 42efc61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions e2e/lnurl.e2e.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ d('LNURL', () => {

await element(by.id('ContinueAmount')).tap();
await element(by.id('CommentInput')).typeText('test comment');
await element(by.id('CommentInput')).tapReturnKey();
await element(by.id('GRAB')).swipe('right', 'slow', 0.95, 0.5, 0.5); // Swipe to confirm
await waitFor(element(by.id('SendSuccess')))
.toBeVisible()
Expand Down
6 changes: 3 additions & 3 deletions src/screens/Wallets/LNURLPay/Confirm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,14 +211,14 @@ const LNURLConfirm = ({
value={
<View style={styles.textContainer}>
<BottomSheetTextInput
blurOnSubmit={false}
value={comment}
onChangeText={setComment}
returnKeyType="done"
testID="CommentInput"
multiline={true}
minHeight={100}
maxLength={pParams.commentAllowed}
blurOnSubmit={true}
testID="CommentInput"
onChangeText={setComment}
/>
</View>
}
Expand Down

0 comments on commit 42efc61

Please sign in to comment.