-
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
[$500] mWeb -Selecting text in TextInput also cover the the TextInput label area #28339
Comments
Job added to Upwork: https://www.upwork.com/jobs/~010e8cb7ae22826c96 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
It looks good to me on Android, and the code doesn't seem to have anything strange, try restarting the terminal and clearing the browser cache, if the problem persists we will look for a solution. In any case it seems to me more of a style problem and not that you are selecting the Label, you can check it by copying and then pasting it into the phone notes, if these were copied it is a selection problem, but if not it is a style question, which can break in the terminal compilation or due to a problem with the cache. Let me know if the problem persists and we will fix it. |
I can still reproduce after clearing the cache, restarting terminal and even using a different Android device, this is indeed a styling issue selection works as expected. |
ProposalPlease re-state the problem that we are trying to solve in this issue.when selecting a text in input the selected text boundary goes beyond the text input expected boundaries and interferes with label. What is the root cause of that problem?the root cause of problem lies in difference between What changes do you think we should make in order to solve the problem?Custom values passed to |
ProposalPlease re-state the problem that we are trying to solve in this issue.Text selection height overlaps with text input label. What is the root cause of that problem?We set the text input's App/src/components/TextInput/BaseTextInput.js Lines 246 to 256 in 3b2dc32
Which is calculated by What changes do you think we should make in order to solve the problem?We should exclude the
return height - labelTranslateY |
This issue now happens on |
@kbecciv could you help to add "Bug" label to this issue? I guess it's reason why Melvin hasn't assigned any BZ member yet. Thanks |
@vadymbokatov @tienifr Thanks for proposals, everyone. I confirm that after reverting the PR here #28126, this issue can not reproduce anymore. Because it's still in regression period so I will let them know. |
Triggered auto assignment to @mallenexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
sent a message here #28126 (comment) |
@hoangzinh, thank you for bringing this bug to my attention. I'd like to clarify that this issue specifically affects Android Chrome. In Android Chrome, the line height must match the element's height for the shadow DOM to update its content's height; otherwise, it retains its initial value. If we set a value lower than the element's height, it won't impact shadow DOM calculations in Android Chrome. The issue with element selection has arisen due to this behavior. To address this bug, we have two options: we can opt to disregard Android Chrome's shadow calculations and remove the fix mentioned in App/src/components/TextInput/BaseTextInput.js Lines 252 to 254 in b94c32c
|
@hoangzinh How do you want me to fix this? It is browser bug. I can just remove this App/src/components/TextInput/BaseTextInput.js Lines 252 to 254 in b94c32c
|
@ayazalavi I haven't read the full details yet, but I think if we remove those LOCs and it still passes those test cases #28126 then I think it's good. |
@ayazalavi Did you try my proposal above #28339 (comment)? I re-tested the original issue and it worked fine. |
@tienifr input height is 52px, if you set line-height to be 51px then it is same as not setting any line-height. |
This should be handled as regression. So @ayazalavi and @sobitneupane will be fixing this. |
📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @ayazalavi You have been assigned to this job! |
📣 @ishpaul777 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
@mallenexpensify this was a regression from #28126 so no payments for this other than the bug reporter |
Thanks @arosiclair |
Thanks for sending the offer. Accepted! |
Issue reporter: @ishpaul777 paid $50 via Upwork |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Only area of text should be selected.
Actual Result:
Selecting text in TextInput also cover the the TextInput label area
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: Dev 1.3.73-1
Reproducible in staging?: n
Reproducible in production?: n
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
Record_2023-09-27-00-56-09.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ishpaul777
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695757053841779
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: