premieroctet / openchakra

⚡️ Full-featured visual editor and code generator for React using Chakra UI

Home Page:https://openchakra.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Switch from Block to Flex back to Block doesn't return to original layout

atifsyedali opened this issue · comments

  1. Open https://openchakra.app/?ref=producthunt
  2. Select AvatarGroup
  3. Switch Layout > Display to Flex
  4. Switch Layout > Display back to Block

Expected: Returns back to how it was
Actual: Doesn't.

Also:

  1. The code shows the extra Flex properties remain on the AvatarGroup.
  2. Reproducible with any other Stack component as well.

I'd like to work on this. Do you have any idea on what may be causing this bug @tlenclos ?

It will be fixed with this PR #57

It adds default props (like display flex) to the inspector form