Skip to content
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

Resize handles render as div causes invalid HTML #720

Open
kWh61 opened this issue Jan 14, 2021 · 1 comment
Open

Resize handles render as div causes invalid HTML #720

kWh61 opened this issue Jan 14, 2021 · 1 comment

Comments

@kWh61
Copy link

kWh61 commented Jan 14, 2021

Overview of the problem

I'm using re-resizable version 6.9.0

My browser is: any

I am sure this issue is not a duplicate? Similar (but not exactly the same): #705

Description

The resize handlers (or "resizers") and their wrapper are defaulted to render as HTML "div" elements. If the resizable component is wrapped in an HTML "p" tag, it would cause Warning: validateDOMNesting(...): \<div> cannot appear as a descendant of \<p>.

Steps to Reproduce

Simply wrap the resizable component in an HTML "p" tag. I can't actually reproduce this issue in a code sandbox because for some reason it does not display a complete list of browser warnings and errors. My specific use case for this is that I want to build a resizable image component that can be inline.

Expected behavior

No warnings when I wrap the resizable component into a p tag.

Actual behavior

Such warnings occur.

@volodymyrdn
Copy link

Any changes on this? I have the same problem.

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