[bug] InnerBlocks breaks Flex, how to apply this fix in MB Blocks?

Support MB Blocks [bug] InnerBlocks breaks Flex, how to apply this fix in MB Blocks?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #36477
    MauroMauro
    Participant

    When adding InnerBlocks support to a block that uses display: flex, the front-end renders fine but in the block editor some DIVs get added within the block that break the flex settings for horizontal and vertical alignment -- here are the added divs:

    <div class="block-editor-inner-blocks">
    <div class="block-editor-block-list__layout" data-is-drop-zone="true">

    I found a workaround/solution here that is also used in WordPress Core, but I have no idea how to apply this to my MetaBox driven blocks. Can you help me applying this fix?

    Here is the solution:
    https://wordpress.stackexchange.com/questions/390696/innerblocks-breaks-flexbox-and-css-grid-styles

    Thank you!

    #36488
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Thank you for your feedback.

    This issue has been added to our backlog development. The fix for this will be included in future updates.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.