-
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
Fix: mWeb- Unable to move to another line by clicking "return" button #7920
Conversation
HOLD for #7702 |
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.
Changes look good! But I'll have to test once the hold is removed.
@parasharrajat @ahmdshrif event bubbling is now live |
thanks, rushatgabhane will work on this now. |
Awesome @rushatgabhane. Thanks for the heads up. |
@parasharrajat this does not work after merge main also if (this.props.isDisabled || this.props.isLoading || !e || e.target.nodeName === 'textarea' ) {
return;
} I do some debug to see where this issue come form App/src/libs/KeyboardShortcut/index.js Lines 83 to 86 in c26e415
here we call the callback if it exists and it returns but this function will continue and will call so changing on callback will not effect if the |
Oh, shoot. Let's raise the same point on the related PR. I will try to see why are we preventing default for no reason. If this is needed, I would say to add a new param to subscription |
@ahmdshrif Ok, I did some research and I think preventDefault is necessary for some cases for Lib to work. This is the action plan now.
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
Wrong ahmed
…On Fri, Mar 11, 2022, 7:46 AM github-actions[bot] ***@***.***> wrote:
*CLA Assistant Lite bot:*
Thank you for your submission, we really appreciate it. Like many
open-source projects, we ask that you all sign our Contributor License
Agreement <https://github.com/Expensify/App/blob/main/CLA.md> before we
can accept your contribution. You can sign the CLA by just posting a Pull
Request Comment same as the below format.
------------------------------
*I have read the CLA Document and I hereby sign the CLA*
------------------------------
*1* out of *2* committers have signed the CLA.
✅ @ahmdshrif <https://github.com/ahmdshrif>
❌ @Ahmed <https://github.com/Ahmed> Sherif
*Ahmed Sherif* seems not to be a GitHub user. You need a GitHub account
to be able to sign the CLA. If you have already a GitHub account, please add
the email address used for this commit to your account
<https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/#commits-are-not-linked-to-any-user>
.
You can retrigger this bot by commenting *recheck* in this Pull Request
—
Reply to this email directly, view it on GitHub
<#7920 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEDHCZLIVH5VWMK66GPDMDU7M6C7ANCNFSM5PK6QRXA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I wite the comment before seeing your comment 😅 ok, shoudpreventDefault is working fine I push it. also, I think about it we need this option for example on the report screen we need to preventDefault enter key to not make a new line and send at the same time. but there is another way to make |
aaf9bd3
to
4907af7
Compare
I saw what you mean but it is possible that there are many event listeners attached and manipulating the native property is a bad practice. |
Co-authored-by: Rajat Parashar <parasharrajat@users.noreply.github.com>
Co-authored-by: Rajat Parashar <parasharrajat@users.noreply.github.com>
Co-authored-by: Rajat Parashar <parasharrajat@users.noreply.github.com>
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.
Found a critical issue https://expensify.slack.com/archives/C01GTK53T8Q/p1647009526394119 which prevents testing the PR as it is. Although, I am sure that it works. But I am leaving this to Carlos.
I think we should fix that issue and fully test this PR before merging it! |
I think the context issue is affected disabled and loading button which has not changed in this pr. |
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.
LGTM. That was not a real bug. Debugger going nuts.
cc: @luacmartins
PR Reviewer Checklist
- I verified the PR has a small number of commits behind
main
- I verified the correct issue is linked in the
### Fixed Issues
section above - I verified testing steps are clear and they cover the changes made in this PR
- I verified the testing environment is mentioned in the test steps
- I verified testing steps cover success & fail scenarios (if applicable)
- I checked that screenshots or videos are included for tests on all platforms
- I verified tests pass on all platforms & I tested again on:
- iOS / native
- Android / native
- iOS / Safari
- Android / Chrome
- MacOS / Chrome
- MacOS / Desktop
- I verified there are no console errors related to changes in this PR
- I verified proper code patterns were followed (see Reviewing the code)
- I verified comments were added when the code was not self explanatory
- I verified any copy / text shown in the product was added in all
src/languages/*
files (if applicable) - I verified proper naming convention for platform-specific files was followed (if applicable)
- I verified style guidelines were followed
- I verified the JSDocs style guidelines (in
STYLE.md
) were followed
- I verified that this PR follows the guidelines as stated in the Review Guidelines
- I verified other components are not impacted by changes in this PR (i.e. if the PR modifies a shared library or component like
Avatar
, I verified the components usingAvatar
are working as expected) - I verified the UI performance was not affected (the performance is the same than
main
branch) - If a new component is created I verified that a similar component doesn't exist in the codebase
🎀 👀 🎀 C+ reviewed
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.
LGTM and tested well! Thanks for the changes!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by @luacmartins in version: 1.1.43-0 🚀
|
🚀 Deployed to production by @roryabraham in version: 1.1.43-2 🚀
|
Details
Fixed Issues
$ #7678
Tests
PR Review Checklist
Contributor (PR Author) Checklist
main
before submitting my PR for review### Fixed Issues
section abovesrc/languages/*
files (if applicable)Styling.md
) for all style edits I madePR Reviewer Checklist
main
before submitting the PR### Fixed Issues
section abovesrc/languages/*
files (if applicable)QA Steps
1- Log with any account
2- Navigate to Settings > Workspace > Manage members > Invite
3- Start typing in the custom message field
4- Hit "return" button
5- make sure enter make new line
Tested On
Screenshots
Web
Screen.Recording.2022-02-25.at.8.32.29.PM.mov
Mobile Web
Screen.Recording.2022-02-25.at.8.29.42.PM.mov
Desktop
Screen.Recording.2022-02-25.at.8.45.36.PM.mov
iOS
Screen.Recording.2022-02-25.at.8.31.26.PM.mov
Android
Screen.Recording.2022-02-25.at.8.40.10.PM.mov