8000 Div with __resizable_base__ remains after component is unmounted. · Issue #224 · bokuweb/re-resizable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Div with __resizable_base__ remains after component is unmounted. #224

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

Closed
joetidee opened this issue Mar 28, 2018 · 2 comments
Closed

Div with __resizable_base__ remains after component is unmounted. #224

joetidee opened this issue Mar 28, 2018 · 2 comments

Comments

@joetidee
Copy link

I am extending <Resizeable/> using styled-components like this:

const ResizableSC = styled(Resizable)``;
export const StyledPane = ResizableSC.extend`
    box-sizing: border-box;
    display: inline-block;
    padding: ${remAuto(13)} 0;
`;

When <StyledPane/> is rendered, using Chrome dev tools, I can see an additional div that is place directly after <StyledPane/> in the DOM:

<div class="__resizable_base__" style="width: 100%; height: 100%; position: relative; transform: scale(0, 0); left: -2.14748e+09px; flex: 0 1 0%;"></div>

When <StyledPane/> is unmounted, this extra div remains in the DOM and I would assume that it shouldn't (?). It is throwing out the layout of the remaining page.

I'm using re-resizable v4.4.4

@bokuweb
Copy link
Owner
bokuweb commented Mar 28, 2018

@joetidee Hi :) Thanks for your report. Could you please provide reproduced project? (https://codesandbox.io/s/xp9p7272m4)

@joetidee
Copy link
Author

Thanks for the quick response. I upgraded to 4.4.8 and the div is now being removed on unmount.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0