onKeyDown added to Textlink component#12034
Conversation
tgolen
left a comment
There was a problem hiding this comment.
I like how this was combined into a single method now 👍
|
I found one issue in this condition for native it's not pressable I'm fixing that |
|
@dhairyasenjaliya The same structure all of the components are using, for example, |
|
hello, For now, we have 2 options
onKeyDown={(e) => {
if (e.key !== 'Enter') {
return;
}
handlePress(e);
}}
|
|
I'd be fine with using option 2. As long as we don't have anything like |
|
option 2 added @tgolen @eVoloshchak |
|
|
@dhairyasenjaliya, could you please re-test native platforms? It looks like this for me, which is not how it looks on |
hm weird let me check in the latest |
|
@eVoloshchak native platform has an issue in the main branch same as you posted a screenshot, you can check even without this PR I think we can post this issue in slack since this was working fine recently these changes so I do think this might be a regression from other PR |
You are right, retested all platforms, updated the screenshots. |
Co-authored-by: e_voloshchak <copyreading@gmail.com>
yeah this is available only for web |
|
LGTM!
|
Co-authored-by: Tim Golen <tgolen@gmail.com>
|
@tgolen any changes remaining from my side? |
|
@dhairyasenjaliya, I think this comment is not addressed yet |
ah I missed that let me take a look at it |
|
@tgolen @eVoloshchak have moved the callback to |
|
@tgolen looks like this was merged without the checklist test passing. Please add a note explaining why this was done and remove the |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
I manually verified the reviewer checklist is complete. |
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.24-4 🚀
|
1 similar comment
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.24-4 🚀
|
|
🚀 Deployed to production by @yuwenmemon in version: 1.2.24-4 🚀
|





Details
Fixed Issues
$ #11354
PROPOSAL: #11354 (comment)
Tests
QA Steps
PR Review Checklist
PR Author Checklist
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick)src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)PR Reviewer Checklist
The reviewer will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issuessection aboveTestssectionQA stepssectiontoggleReportand notonIconClick).src/languages/*filesWaiting for Copylabel for a copy review on the original GH to get the correct copy.STYLE.md) were followedAvatar, I verified the components usingAvatarhave been tested & I retested again)/** comment above it */thisproperly so there are no scoping issues (i.e. foronClick={this.submit}the methodthis.submitshould be bound tothisin the constructor)thisare necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);ifthis.submitis never passed to a component event handler likeonClick)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)Avataris modified, I verified thatAvataris working as expected in all cases)Screenshots
Web
Chrome
https://user-images.githubusercontent.com/47522946/196866996-1498e6fd-e578-48e0-a690-8b283c839d5a.mov
Safari
https://user-images.githubusercontent.com/47522946/196867024-5c4461fb-4eec-4314-a537-588b49ad0ab8.mov
Mobile Web - Chrome
Mobile Web - Safari
Desktop
Desktop.mov
iOS
Android