-
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
[$250] Tasks - Pressing enter key after a mark down doesn't show the new line #46389
Comments
Triggered auto assignment to @johncschuster ( |
@johncschuster FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
We think that this bug might be related to #Live Markdown |
ProposalPlease re-state the problem that we are trying to solve in this issue.When hitting the enter key after a complex markdown element (bold, italic, quote, hashtag,...) the input doesn't scroll down to the new line at the bottom, unlike when hitting entering key after a plain text in the input. What is the root cause of that problem?When we hit the Considering 2 following scenarios: Hitting Enter after plain textIn this case the whole text node would look like Hitting enter key after a complex markdown element, e.g: bold, italic, quote, hashtag,...Same reasoning as the first scenario, but now since the previous node is an element node, somehow the browser will join the newline after that to the last text node, and place the caret between 2 newlines. Simply put, the HTML value would look like
We can verify by adding So, because the selection range which represents caret is different in 2 scenarios, hence
And we only use the first What changes do you think we should make in order to solve the problem?In case the
What alternative solutions did you explore? (Optional) |
This will either fit under #live-markdown or #tasks. I think it's live markdown related. |
Hi, I'm Bartosz from SWM I'm going to be OOO till 11.08, so I'm tagging @tomekzaw here for visibility. |
Job added to Upwork: https://www.upwork.com/jobs/~019aa27e395e6f5aae |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 ( |
@johncschuster, @Pujan92 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Not overdue. We're waiting on @BartoszGrajdek to come back from OOO. |
Bumping to keep Melvin happy |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@johncschuster @Pujan92 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
@johncschuster, @Pujan92 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Bumping this one. Were you able to pick this back up, @BartoszGrajdek? |
Hmm for live markdown related issue, shall we wait for the live markdown team to review the proposal, or C+ can also review? |
Thanks for the bump @johncschuster ! We had quite a few high-priority issues this week. 😅 @dominictb's proposal makes sense to me, so if you agree, we can assign him to this issue. He can then raise a PR to Unfortunately, our team at SWM will be OOO on Thursday and Friday due to a public holiday (sorry about that again 🙏🏻). In the meantime, you or any C+ member can review the PR in our repo. Just please hold off on merging it, as we’d like to test it against some of our known regressions once we're back to ensure we don't break anything. 👀 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
📣 @dominictb 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Sounds great, @BartoszGrajdek! Thanks for that update! @dominictb, I've assigned the issue to you. Please review @BartoszGrajdek's comment above |
PR Expensify/react-native-live-markdown#454 is ready. |
@Pujan92 @johncschuster @BartoszGrajdek app PR #47763 is ready for review. |
@BartoszGrajdek @Skalakid it seems like in the latest main, I couldn't put a new line by pressing Screen.Recording.2024-08-28.at.15.09.06.mov |
@johncschuster I have closed the app PR since we have another PR that bump to markdown lib to cc @Pujan92 |
@johncschuster @Pujan92 this is fixed on latest main, and since we had the production deployment recently, can we confirm that this is ready for payment? |
Payment Summary:Contributor: @dominictb paid $250 via Upwork - PAID! 🎉 |
Does this require regression test steps? If so, can you please post them? |
@johncschuster I haven't reviewed the proposal or markdown PR for this issue so no payment for me. All done by @BartoszGrajdek. Thanks to them! |
Got it. Thanks, @Pujan92! @BartoszGrajdek / @dominictb do you feel we need some regression steps for this one? |
Bumped in Slack for regression test steps |
Regression test steps:
Verify that: When hitting the enter key, the new line becomes visible with the cursor seen visibly. |
Thank you! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.13-3
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When hitting the enter key after a mark down the new line becomes visible with the cursor seen visibly
Actual Result:
When hitting the enter key after a mark down the cursor gets hidden on the new line which is a different behavior when compared with the behavior seen on a normal text and hitting enter key
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6550710_1721751760580.1.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: