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

full page grey splash on ios #11154

Closed
1 task done
huhaixiao opened this issue Apr 26, 2018 · 8 comments
Closed
1 task done

full page grey splash on ios #11154

huhaixiao opened this issue Apr 26, 2018 · 8 comments
Labels
bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! external dependency Blocked by external dependency, we can’t do anything about it

Comments

@huhaixiao
Copy link

huhaixiao commented Apr 26, 2018

I'm using create-react-app and material, notice that on physical ios device, the page splashes, tried -webkit-tap-highlight-color: transparent, not working, don't know why, so I tried this example on material-ui repo, the example also get splashes, is this not a bug? If not, how can I fix it. Thanks!!!

  • I have searched the issues of this repository and believe that this is not a duplicate.

Your Environment

Tech Version
Material-UI "material-ui": "^1.0.0-beta.43"
React "react": "^16.3.2"
browser
etc

wechatimg81
wechatimg82
wechatimg83

@oliviertassinari oliviertassinari added the status: waiting for author Issue with insufficient information label Apr 26, 2018
@oliviertassinari

This comment has been minimized.

@huhaixiao
Copy link
Author

I produced this issue on real Apple device, screen capture is tricky, so I took two pictures, this grey splash is noticeable, I cloned the create-react-app example, build and deployed it at here, I believe if you try this on real device, you can notice the splash, many thanks!

@mbrookes
Copy link
Member

I can reproduce the issue at the linked example.

@oliviertassinari oliviertassinari added external dependency Blocked by external dependency, we can’t do anything about it and removed status: waiting for author Issue with insufficient information labels Apr 27, 2018
@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 27, 2018

The simplest reproduction I could build:

import React from "react";
import ReactDOM from "react-dom";

function Index() {
  return <button onMouseDown={() => {}}>Wtf</button>;
}

ReactDOM.render(<Index />, document.querySelector("#root"));

https://codesandbox.io/s/p3npm3o6j7

I don't think that we can do anything about it. I have opened a bug on iOS side: https://bugreport.apple.com/web/?problemID=39801425

@oliviertassinari
Copy link
Member

oliviertassinari commented Apr 27, 2018

One more though, removing the button from the page solves the problem: https://codesandbox.io/s/v39j4kzov5.

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! labels Apr 27, 2018
@gaearon
Copy link

gaearon commented Aug 6, 2018

@oliviertassinari
Copy link
Member

@gaearon Thanks for the heads up.

@gaearon
Copy link

gaearon commented Aug 6, 2018

I guess you can work around it by detecting iOS and assuming it won't have mouse support (so you can maybe map mouse events to touch events directly, thereby preventing React from registering a mouse listener). I don't know if that's a very good strategy though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: button This is the name of the generic UI component, not the React module! external dependency Blocked by external dependency, we can’t do anything about it
Projects
None yet
Development

No branches or pull requests

4 participants