material-ui icon indicating copy to clipboard operation
material-ui copied to clipboard

Tapping any surface will show iOS keyboard.

Open BlockChange opened this issue 10 years ago • 7 comments

For some reason on iOS whenever any piece of paper or other mui elements are tapped, (like the BottomNavigation) the iOS keyboard shows up, in safari & chrome.

This problem does not occur on the web or on Android (both chrome)

Any ideas why this happens? Anyone had this happen before?

I don't have access to an iOS device to continuously test this.

I'm googling this issue but it doesn't seem a know issue thusfar.

Mui: v0.16.1 React: 15.3.2

BlockChange avatar Nov 09 '16 13:11 BlockChange

Ok, what I did is replace all onTouchTap events with onClick and remove the injectTapEventPlugin, this fixed the issue...

Anyone know if injectTapEventPlugin is still needed for modern(ish) browsers OSes? I don't have to support Internet Explorer or other outdated browsers.

BlockChange avatar Nov 09 '16 14:11 BlockChange

Might be related to: https://github.com/callemall/material-ui/issues/5522

BlockChange avatar Nov 09 '16 15:11 BlockChange

I am having the same issue on iOS device on safari. Chrome ok.

Mui: v0.16.1 React: 15.3.1

ghost avatar Nov 30 '16 06:11 ghost

I am having the issue with mui 16.4 and react 15.4 with iphone 7 chrome 54.

KaboomFox avatar Dec 07 '16 23:12 KaboomFox

Would it be useful for there to be an interim release between current master and next which would be master but without the touchtap plugin and onTouchTap replaced with onClick?

This would be a good stepping stone for later consuming the next branch changes, and is what I'm doing at the moment to get a version that doesn't require the plugin.

Touch tap events could possibly be done with React Tappable instead of the plugin as now suggested at http://stackoverflow.com/a/34015469/1998186.

nealeu avatar Jan 11 '17 16:01 nealeu

Would it be useful for there to be an interim release between current master and next which would be master but without the touchtap plugin and onTouchTap replaced with onClick?

@nealeu That's something we could have done, however, I have a low incentive in going into that direction. I have been migration my app a long time ago to the v1-beta branch. The less I work on the master branch and the more appealing the v1-beta branch is the better. I'm closing as the v1-beta branch is no longer using the plugin.

oliviertassinari avatar Jul 28 '17 20:07 oliviertassinari

Yes. Totally agree.

nealeu avatar Jul 29 '17 13:07 nealeu