Skip to content
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

Array Methods Not Transpiling Correctly for Mobile Browsers (e.g. Safari, Chrome) #8594

Closed
ydax opened this issue Mar 3, 2020 · 2 comments · May be fixed by admmasters/create-react-app#34 or joseroubert08/create-react-app#55

Comments

@ydax
Copy link

ydax commented Mar 3, 2020

It seems that the config behind the build command is transpiling incorrectly for mobile browsers.

Expected Behavior
Array.map() methods, when used to populate dropdowns, should behave exactly the same on desktop, and on mobile browsers.

Observed Behavior
When deploying builds using npm run build, dropdowns populate as expected for deployed React web apps on both desktop and mobile browsers, but attributes (e.g. onClick) do not seem to be populating correctly behind the scenes. For example, a dropdown item that navigates the user to another page of a React project will correctly route them when they use a desktop browser (including in mobile view with Chrome dev tools), but the same dropdown will not consistently route them correctly when they access the same React app with a mobile browser on a mobile device.[1]

See a full description of this issue, with screenshots and code samples, here: https://stackoverflow.com/questions/60494492/react-web-app-routing-works-on-desktop-incl-mobile-dev-view-but-not-on-mobil

@petetnt
Copy link
Contributor

petetnt commented Mar 4, 2020

Seems like a duplicate of react-materialize/react-materialize#924 ?

@ydax
Copy link
Author

ydax commented Mar 4, 2020

Yep, it looks like you hit the nail on the head, @petetnt. Thanks for taking a look.

@ydax ydax closed this as completed Mar 4, 2020
@lock lock bot locked and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants