-
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
[HOLD for payment 2023-10-23] [HOLD for payment 2023-10-23] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-20] [HOLD for payment 2023-10-09] [$500] Request Money - On entering emoji in merchant input field the height changes #26735
Comments
Triggered auto assignment to @flaviadefaria ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Request Money - On entering emoji in merchant input field the height changes What is the root cause of that problem?The root cause of this issue is we didn't add App/src/pages/iou/MoneyRequestMerchantPage.js Lines 110 to 119 in 8150ce0
What changes do you think we should make in order to solve the problem?We should add <TextInput
inputID="moneyRequestMerchant"
name="moneyRequestMerchant"
defaultValue={iou.merchant}
maxLength={CONST.MERCHANT_NAME_MAX_LENGTH}
label={translate('common.merchant')}
accessibilityLabel={translate('common.merchant')}
accessibilityRole={CONST.ACCESSIBILITY_ROLE.TEXT}
ref={(el) => (inputRef.current = el)}
+ autoGrowHeight
+ containerStyles={[styles.autoGrowHeightMultilineInput]}
+ textAlignVertical="top"
/> What alternative solutions did you explore? (Optional)None. |
Job added to Upwork: https://www.upwork.com/jobs/~010ed71c8c76dd7c91 |
Current assignee @flaviadefaria is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When user select Request Money from menu item then click on show more in the last step then tap on Merchant and then enter some text and insert emoji, this results in height getting fluctuated What is the root cause of that problem?The root cause of the problem is the 'line-height' CSS attribute, which needs to be explicitly set for Safari. This is because, in Safari, the shadow DOM calculates the height of content manually. So, when we simply enter text, the shadow DOM calculates the height to be 17px. However, when we insert an emoji, the height is readjusted because there is room for an increase in height. After the emoji gets inserted, the height becomes 21px causing fluctation: App/src/components/TextInput/BaseTextInput.js Lines 328 to 333 in cbda2b0
lineHeight: undefined which is causing height of the shadow content to be calculated by the browser.
What changes do you think we should make in order to solve the problem?We need to explicitly set lineheight css attribute like mentioned here. We need to change App/src/components/TextInput/BaseTextInput.js Line 330 in cbda2b0
!isMultiline && { height, lineHeight: Browser.isSafari() && _.find(props.inputStyle, function(f) { return f.lineHeight !== undefined; })?.lineHeight || undefined}
which will take line height when passed through props and it is not causing any fluctuation anymore in safari. check video below for confirmation: Untitled.mp4What alternative solutions did you explore? (Optional)Another solution is to use the autoGrowHeight prop, but it will convert the input field into a textarea, making it multiline. after that you can enter into next line even though input height is just for one line. |
@sobitneupane ... TIA |
@sobitneupane any update regarding my proposal? |
@alphaboss1104 Thanks for the proposal.
|
Proposal from @ayazalavi looks good to me. 🎀 👀 🎀 C+ reviewed |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@ayazalavi can you verify this doesn't cause any regressions wrt this comment:
|
@arosiclair I double checked #13802. It is working as expected in my end but please do verify it on your end as well. Basically the fix is safari ONLY since the bug is appearing in safari browser. For all other platforms code will be same as before. |
Be sure to include testing for #13802 in your PR test steps. |
📣 @sobitneupane Please request via NewDot manual requests for the Reviewer role ($500) |
📣 @ayazalavi You have been assigned to this job! |
📣 @aman-atg 🎉 An offer has been automatically sent to your Upwork account for the Reporter role 🎉 Thanks for contributing to the Expensify app! |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.83-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.83-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-20. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.84-10 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-10-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
For reference, here are some details about the assignees on this issue:
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary @ayazalavi = $500 - 50% (over 6 days) - 50% (regression) = $125 @aman-atg = paid |
@ayazalavi you've been paid. Closing this GH. |
https://github.com/Expensify/App/pull/14273/files#r1375797245
Not Required
Yes
|
Regression Test Proposal
Do we agree 👍 or 👎 |
Requested payment on newDot. |
$125 payment approved for @sobitneupane based on this comment. |
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:
The input field's height should remain consistent after entering an emoji
Actual Result:
The input field's height changes
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.63.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
6b410ae2-bd8c-4370-ad9b-ad6ee2327427.MP4
Expensify/Expensify Issue URL:
Issue reported by: @aman-atg
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693481505877419
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: