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

Snackbar can be clicked through in IE11

Open stbenz88 opened this issue 9 years ago • 6 comments

Problem description

I can click through the Snackbar in IE11 onto the underlying elements. That causes problems when there are, for instance, links lying underneath the Snackbar.

Steps to reproduce

Take a Snackbar and a SnackbarContent within the Snackbar. Place it over some element, e.g. a Link. Trigger the appearance of the Snackbar and click on it where the link is beneath.

Versions

  • Material-UI: 1.0.0 Beta 8
  • React: 15.6.1
  • Browser: IE11

stbenz88 avatar Sep 07 '17 15:09 stbenz88

Good find @stbenz88. This would be a good first issue for you to PR the fix.

rosskevin avatar Sep 07 '17 15:09 rosskevin

I don't follow, I can't reproduce: sept -07-2017 23-55-11

oliviertassinari avatar Sep 07 '17 21:09 oliviertassinari

Beat me with a french stick, but I wouldn't know how to cause this issue if I wanted to.

Are the links underneath Material UI?

Izhaki avatar Sep 07 '17 23:09 Izhaki

I made a gif myself.

snackbar

I can make a PR if you want to with the fix. Let me know.

stbenz88 avatar Sep 08 '17 06:09 stbenz88

How would you fix the issue? Without a way to reproduce, I can only trust you.

oliviertassinari avatar Sep 08 '17 07:09 oliviertassinari

I would fix it by setting the pointer-events to 'all' in the Snackbar root class.

See https://github.com/callemall/material-ui/pull/8096

stbenz88 avatar Sep 08 '17 07:09 stbenz88