-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD #20353] [$1000] Enter key isn’t creating new line for new members invitation message textinput #18419
Comments
Triggered auto assignment to @sakluger ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Shift+Enter is not creating the new line for the invite message multiline textinput What is the root cause of that problem?Before reaching to the invite message page we are selecting the members from the invite members page, in that we have App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 57 to 95 in b996b4d
This(OptionsSelector) component isn't unmounted as the parent component remains due to we are moving the navigation in forward dir. For this key subscribe method we are not providing What changes do you think we should make in order to solve the problem?We need to provide the
|
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
This is also broken in the main composer in staging I think |
@aldo-expensify this commit seems breaking it where closeShortcutEnterModalConfig is configured for ENTER key. |
Checking with Aldo to see ifthat PR did cause a regression. |
@Pujan92 is correct about the root cause here: #18419 (comment) I'm not sure about what PR introduced this bug yet. The code that added the ENTER shortcut that prevents the enter key from working correctly has been there for a while: App/src/components/OptionsSelector/BaseOptionsSelector.js Lines 59 to 74 in 983da48
|
@Pujan92 's proposed solution doesn't work well in all cases. It works well if you have focused the Textarea, but if you click somewhere else and you press enter, you can still select new entries in the list that is hidden in the previous page: Screen.Recording.2023-05-05.at.2.29.58.PM.mov |
Job added to Upwork: https://www.upwork.com/jobs/~016a25a3c41bc6b912 |
Current assignee @sakluger is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
Current assignee @aldo-expensify is eligible for the External assigner, not assigning anyone new. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Enter key isn’t creating new line for new members invitation message textinput What is the root cause of that problem?Because the What changes do you think we should make in order to solve the problem?It may not be practical to override I also suggest that we refactor |
While I agree that it would be better that way, I think we should keep it out of the scope of this issue. If you want to pursue this change, I think it would be good to propose it in slack. |
I'll give some time to @rushatgabhane to check the @hellohublot 's proposal. It make sense to me, but I haven't tested it yet. |
If you are the assigned CME please investigate whether the linked PR caused a regression and leave a comment with the results. If a regression has occurred and you are the assigned CM follow the instructions here. If this regression could have been avoided please consider also proposing a recommendation to the PR checklist so that we can avoid it in the future. |
@hellohublot @aldo-expensify we can set the priority of keyboard shortcuts if I'm not wrong. Maybe we should use that? App/src/libs/KeyboardShortcut/index.js Line 110 in 144979b
|
@rushatgabhane Thanks for your suggestion, I tested [0, 1, -1], it doesn't work, because this only affects the order of multiple event callbacks, these events will still be executed App/src/libs/KeyboardShortcut/index.js Lines 123 to 130 in 144979b
|
Sounds good - I've added the hold and moved to weekly while we wait for the other issue. |
Still on hold for #20353. |
Same ^ |
Still on hold. |
Still on hold. |
Same ^ |
@aldo-expensify yeah, of course! I think we should get back to it. 🙂 |
Cannot recreate either on staging or prod Screen.Recording.2023-09-11.at.18.11.04.mov |
@koko57 thanks for testing, I also tried now and it is working for me aswell Screen.Recording.2023-09-12.at.9.39.34.AM.movShould we just close this then? |
@aldo-expensify If you're asking me, I think yes, it can be closed now 😃 |
thanks! I guess I was looking for a second opinion to confirm, closing then. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
It should create new line within textinput
Actual Result:
It isn’t creating new line
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.10-0
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Screen.Recording.2023-05-03.at.10.04.08.PM.mov
Recording.478.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Pujan92
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1683131447948259
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: