Frame wraps elements in a containing div for no reason
See original GitHub issueDescribe the bug When trying to use react-slick inside a frame it reads the divs inside as one slide and for some reason wraps them inside a containing div
To Reproduce Steps to reproduce the behavior:
1-Make a frame inside an editor 2-Create a react slick slider there 3-Create multiple divs for the slides
below is the code used
<Slider>
<div>0</Element>
<div>1</Element>
<div>2</Element>
</Slider>
the divs inside the slider get wrapped inside a parent div when put inside a frame, but work fine outside it.
Expected behavior the slider will have multiple slides.
Your environment
Software | Version(s) |
---|---|
craft.js | 0.1.0-beta.19 |
React | 17.0.2 |
TypeScript | 3.7.5 |
Issue Analytics
- State:
- Created 2 years ago
- Comments:6
Top Results From Across the Web
How to make a DIV not wrap? - Stack Overflow
Try using white-space: nowrap; in the container style (instead of overflow: hidden; ).
Read more >How to prevent inline-block divs from wrapping - GeeksforGeeks
We can prevent inline-block divs from wrapping by adding suitable Bootstrap classes. Let us understand this with the help of an example: Example ......
Read more ><div>: The Content Division element - HTML - MDN Web Docs
The <div> HTML element is the generic container for flow content. It has no effect on the content or layout until styled in...
Read more >Styling Layout Wrappers In CSS - Ahmad Shadeed
We have aside and main elements, and they live inside another element that wraps them. The .wrapper element has a width, of course....
Read more >How Not to Wrap the Contents of <p>, <div>, and <span ...
You can make the contents of HTML <p>, <div>, and <span> elements not to wrap by using some CSS. You need the white-space...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ooh. I liked the idea of embedding craft into SwiperJs so much (since I really like SwiperJs) that I gave it a shot, too and created a proof of concept (codesandbox)
This is the full code of the PoC.
We need the isMounted stuff, since I used nextjs and we need to make sure we are not on the server.
i will once it’s ready and yeah i will close it for now, thanks a lot for the help i’m just moving a bit slow with it