react-table-library icon indicating copy to clipboard operation
react-table-library copied to clipboard

Void Elements are being modified with a closing </div>

Open realmsoft opened this issue 11 months ago • 0 comments

Whenever I write something that would normally be a void element inside a <HeaderCell>, the library seems to convert it to an open element with a closing </div> tag. For example:

<img src='abc'/> becomes <img src='abc'></div> <br/> becomes <br></div>

Even when I do this with a <img src=''></img> it does the same thing.

Even more odd, when I do multiple:

<img src='abc'/>
<img src='def'/>

It becomes:

<img src='abc'>
<img src='def'>
</div>
</div>

I don't seem to be able to find anything in the docs on how to get these element types working. If I use other nested elements such as a <div> or <p> everything inside is working just fine.

realmsoft avatar Jan 21 '25 23:01 realmsoft