-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
mWeb - scan - When long pressing a section in mweb, the selection disappears within seconds #50011
Comments
Triggered auto assignment to @stephanieelliott ( |
@stephanieelliott 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 |
Edited by proposal-police: This proposal was edited at {current_timestamp}. ProposalPlease re-state the problem that we are trying to solve in this issue.When long pressing a section in mweb, the selection disappears within seconds What is the root cause of that problem?The issue described in react-native-web is that a long press triggers a App/src/components/MenuItem.tsx Line 572 in a6d812c
What changes do you think we should make in order to solve the problem?To resolve this issue on mobile web, we can use // .src/components/MenuItem.tsx#L575
- onPressOut={ControlSelection.unblock}
+ onPressOut={(e) => {
+ if (Browser.isMobileChrome()) {
+ if (shouldCheckActionAllowedOnPress) {
+ Session.checkIfActionIsAllowed(onPressAction(e), isAnonymousAction);
+ } else {
+ onPressAction(e);
+ }
+ }
+ ControlSelection.unblock();
+ }} POC
Screen.Recording.2024-10-02.at.13.18.49.mov |
Edited by proposal-police: This proposal was edited at 2024-10-02 10:52:11 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Long pressing a menu item on Android mobile web causes the pressed state feedback to disappear after a short time when the menu item is pressed. What is the root cause of that problem?When no
the What changes do you think we should make in order to solve the problem?We should pass a no-operation function (noop) in the required cases so that a handler, although noop, is set for We implemented a similar fix directly to the I think onSecondaryInteraction = Browser.isMobileChrome() ? () => {} : undefined, here: App/src/components/MenuItem.tsx Line 418 in a6d812c
What alternative solutions did you explore? (Optional)
|
Long press doesn't have any function in this scenario, so it seems this would not have any actual impact on users. Gonna close as |
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.42-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: N/A
Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
When long pressing a section, it must show same behavior in mweb and Android
Actual Result:
When long pressing a section in mweb, the selection disappears within seconds but in Android selection remains
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6621256_1727800119044.screenrecorder-2024-10-01-19-51-50-644_compress_1.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: