You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are some strange behaviors when toggling list (click on the button) on nested lists. If you play with it on the storybook for a while its very easy to come up with these situations.
I would expect that only li nodes could be children of ul nodes but that is not the case. Are my expectations reasonable?
An example
- ul
- li
- p A
- ul
- li
- p B <- toggle list here
- ul
- li
- p C
becomes
- ul
- li
- p A
- p B <- toggle list here one more time
- ul
- ul
- li
- p C
becomes
- ul
- p A
- p B <- toggle list here one more time
- ul
- ul
- ul
- li
- p C
I hope this makes sense 😅
The text was updated successfully, but these errors were encountered:
I would also add that the behaviour is also happening when removing list items that has list children (watch gif).
yeah this might be solved with a normalizer!
There are some strange behaviors when toggling list (click on the button) on nested lists. If you play with it on the storybook for a while its very easy to come up with these situations.
I would expect that only
li
nodes could be children oful
nodes but that is not the case. Are my expectations reasonable?An example
becomes
becomes
I hope this makes sense 😅
The text was updated successfully, but these errors were encountered: