Repository navigation
Collapsible enhancements - #4257
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
size-limit report 📦
|
|
Hey @fantactuka, great stuff. Wanted to get your thoughts on #4187 on using a block cursor vs adding paragraphs or it's possible I've misunderstood the changes. Feel free to close this issue if you think it makes sense. |
As of now block cursor is only applicable to decorators and won't help much with elements since element node that has children won't receive selection (unlike decorators). |
20bf243 to
7d007e1
Compare
caf2da8 to
b466af9
Compare
|
I discovered a small bug when playing with those changes, when it's the top node and the empty paragraph node is deleted using "delete" key, it deletes the collapsible section, but if "backspace" is used it deletes the empty paragraph correctly. Video below: delete_vs_backspace.mp4 |
I think it's a general issue, e.g., adding with Heading instead of collapsible and trying to press delete while on line just above it, it'll replace heading with regular paragraph |
You are right. To tackle for another day. |
#4380 - addresses the issue |
b466af9 to
f5e6329
Compare
Better handling for up/down/left/right arrows to escape collapsible when it's the last/first element in the root/shadowroot