-
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 Inconsistency while pasting highlighted mention in room description #42361
Conversation
@shubham1206agra Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
@shubham1206agra Please help review this PR |
@tienifr Merge main please. |
@tienifr I am unable to add new line in New Room description. Can you fix this? |
Screen.Recording.2024-05-27.at.4.58.51.PM.mov@tienifr See this. |
@shubham1206agra I still can use cmd+enter to add a new line. |
@tienifr This will not work. We require to Enter or Shift + Enter to give a new line too. |
@shubham1206agra I fixed this issue |
@shubham1206agra Can you check this? |
@@ -3386,6 +3386,8 @@ const CONST = { | |||
* @deprecated Please stop using the accessibilityRole prop and use the role prop instead. | |||
*/ | |||
IMAGE: 'image', | |||
|
|||
TEXTBOX: 'textbox', |
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.
Can you give me a small explanation why this will fix the issue?
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.
When we use isMarkdownEnabled: true
, the activeElementRole
in here is textbox
, so shouldDisableEnterShortcut
in here is false
, that why pressing on enter does not add a new line. So we need to make sure when the markdown input is focused, shouldDisableEnterShortcut
is true
, by adding texbox
to CONST.ACCESSIBILITY_ROLE
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.
@shubham1206agra Can you help check it?
Reviewer Checklist
Screenshots/VideosAndroid: NativeiOS: Native |
Co-authored-by: Shubham Agrawal <58412969+shubham1206agra@users.noreply.github.com>
✋ 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 https://github.com/francoisl in version: 1.4.82-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 1.4.82-4 🚀
|
Details
Fixed Issues
$ #41919
PROPOSAL: #41919 (comment)
Tests
@ApplauseTester++0411km
@jaihanumanblog@gmail.com
Tap header
Paste text in room description
Note second mention is highlighted
Note now second mention is highlighted and displayed
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
Screen.Recording.2024-05-18.at.17.59.23.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-05-18.at.17.20.28.mov
MacOS: Desktop