-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
onKeyDown added to Textlink component #12034
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cc: @tgolen
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thank you!
@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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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 Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is 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