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

[Dialog] Touch / Click on button affect the render of the dialog shadow when using Electron

Open shug0 opened this issue 10 years ago • 5 comments

Description

I had this bug in my Electron App and I make a little sandbox project for recreating the bug and isolate others components.

When I launch my electron app view and using a material-ui dialog, the ripple animation affect the shadow area of the dialog. This happen everytime I launch a packaged App and every first launch of the electron dev app.

Images & references

Problem description

The Ripple Animation affect the dialog shadow by paiting black rectangle The problem can be temporary fixed by adding the disableTouchRipple properties to your button component for removing the effect.

Link to minimally-working code that reproduces the issue

Here is the minimal repository with the bug : https://github.com/shug0/material-ui_electron/tree/master

Versions

  • Material-UI: "^0.16.1"
  • React: "^15.3.2"
  • Browser: "electron": "^1.4.1" (I don't know the chromium version used)

shug0 avatar Nov 09 '16 13:11 shug0

Thanks for the detailed issue, does this happen only when opening a <Dialog /> or with any component using ripple effect?

lucasbento avatar Nov 13 '16 23:11 lucasbento

Hi @lucasbento , it's happen only when a ripple button is clicked and a <Dialog /> is open. The propagation of the ripple affect the background of the modal (the shadow area)

shug0 avatar Nov 14 '16 09:11 shug0

I don't think this is an issue with material-ui but rather with electron on mac osx. I have tried the example on linux and it works without issue.

example

Can you try this on other OS?

irfanhudda avatar Feb 11 '17 20:02 irfanhudda

Hello @irfanhudda, I can't try it on others OS but yes I think too than it's an mac os electron isolated bug.

shug0 avatar Feb 13 '17 08:02 shug0

I'm closing. Hopefully, the issue is fixed on the v1-beta branch.

oliviertassinari avatar Sep 09 '17 10:09 oliviertassinari