Open m-natarajan opened 1 week ago
Triggered auto assignment to @lschurr (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.
Job added to Upwork: https://www.upwork.com/jobs/~01a59336e899fcaa47
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (External
)
cc @BartoszGrajdek @tomekzaw
Let's add this to the Live Markdown project @mountiny
@mountiny is this still open for proposal? I am working on it
Cannot select a word in the native iOS composer if the message contains an emoji.
Originally, React Native had an issue with TextInput
when using emojis.
All emoji characters are automatically given an AppleColorEmoji NSFont attribute and the original font is moved to NSOriginalFont attribute.
This causes an issue when we call isEqualToAttributedString when we set the attributedText, since it will always be false if an emoji is present.
React Native fixed this by ignoring all attributes in such cases.
However, this fix caused Expensify/react-native-live-markdown#293 and #41390, and was reverted by Expensify/react-native-live-markdown#318.
Making clones of newText
and oldText
and removing the NSOriginalFont
and NSFont
attributes from them before calling isEqualToAttributedString
.
- return [newText isEqualToAttributedString:oldText];
+ NSMutableAttributedString *newTextCopy = [newText mutableCopy];
+ NSMutableAttributedString *oldTextCopy = [oldText mutableCopy];
+ [newTextCopy removeAttribute:@"NSFont" range:NSMakeRange(0, newTextCopy.length)];
+ [oldTextCopy removeAttribute:@"NSFont" range:NSMakeRange(0, oldTextCopy.length)];
+ [oldTextCopy removeAttribute:@"NSOriginalFont" range:NSMakeRange(0, oldTextCopy.length)];
+ return [newTextCopy isEqualToAttributedString:oldTextCopy];
N/A
@mollfpr, @lschurr Huh... This is 4 days overdue. Who can take care of this?
@mountiny is this open for proposals? Should @mollfpr be reviewing?
@QichenZhu Could you please provide more details about the suggested fix for this problem?
@tomekzaw Sure, here's the updated proposal. Thanks!
Thanks, sounds good to me. Can we proceed with the PR so we can test out the changes?
I don't have much experience with objective-c, but I believe @tomekzaw reviewed.
Probably @QichenZhu can provide a video of the result before the assignment?
Thanks, @QichenZhu. It looks good to me!
Let's move forward with @QichenZhu proposal then!
π π π C+ reviewed!
Triggered auto assignment to @stitesExpensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @QichenZhu π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
If you havenβt already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.2-0 Reproducible in staging?: Yes Reproducible in production?: Yes 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 Expensify/Expensify Issue URL: Issue reported by: @mountiny Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1719405668302249
Action Performed:
Expected Result:
Able to select word by long press or by double tapping
Actual Result:
Unable to select by long press or by double tapping
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
https://github.com/Expensify/App/assets/38435837/05f9d34d-e019-45a6-bde3-e89d0c3e5db3
https://github.com/Expensify/App/assets/38435837/e4f0067b-b30c-4928-9784-b2ccc8a75760
Screenshots/Videos
Add any screenshot/video evidence
View all open jobs on GitHub
Upwork Automation - Do Not Edit