react-use-intercom icon indicating copy to clipboard operation
react-use-intercom copied to clipboard

Lost style from material UI

Open taiducnguyen opened this issue 1 year ago • 11 comments

Hi,

I'm using nextjs and trying to integrate with intercom then I found the issue: When opening the chat box and then clicking on the close button, the material UI style is lost image And I also see another error when I go to the other navigation page: image

image

Do you guys have any idea about this issue ?

taiducnguyen avatar Aug 05 '22 10:08 taiducnguyen

Same problem here https://streamable.com/we89py. Although it happens only on mobile.

I am using the hook in a next.js app

ferpintado avatar Aug 12 '22 00:08 ferpintado

Hi, thanks for creating this issue.

Can you provide a reproduction?

devrnt avatar Aug 29 '22 05:08 devrnt

Hi, thanks for creating this issue.

Can you provide a reproduction?

...
...
const { show, update } = useIntercom();
...
...
<Button
  endIcon={<HelpOutline />}
  variant="text"
  onClick={show}
>
  Ayuda
</Button>

dependencies:

"@emotion/react": "^11.7.1", "@emotion/server": "^11.4.0", "@emotion/styled": "^11.6.0", "@mui/material": "^5.3.1", "next": "12.1.0", "react": "17.0.2",

1.- Open your app in mobile size window 2.- Click on the button

Intercom would open fine

3.-Close intercom 4.- Navigate to another route

App styling is broken

ferpintado avatar Aug 31 '22 02:08 ferpintado

Could you provide a codesandbox/stackblitz link with a small reproduction?

devrnt avatar Sep 19 '22 18:09 devrnt

Feel free to re-open

devrnt avatar Oct 05 '22 17:10 devrnt

Hi, I'm having the same issue with next.js and only on mobile. Can someone re-open this issue please?

rspauwen avatar Oct 13 '22 11:10 rspauwen