Unlinking fails for middle block when more than 2 blocks are selected #8030
Labels
domain:ui/ux
This issue reports a problem related to UI or UX.
package:engine
package:link
squad:core
Issue to be handled by the Core team.
type:bug
This issue reports a buggy (incorrect) behavior.
Milestone
📝 Provide detailed reproduction steps (if any)
✔️ Expected result
All items should be free of the link.
❌ Actual result
The middle item is still linked.
I briefly checked this and the 3 ranges
Writer#removeAttribute()
works on internally are looking fine. It feels like the bug is in thesetAttributeOnRange()
helper. When I logged the followingin the walker inside it was
because the walker created with
shallow: true
. When I got rid of this option, the bug is gone and more items are loggedP.S. The bug could also be in
getMinimalFlatRanges()
.📃 Other details
It's not a regression, I checked in v16.0.0 and it's all the same.
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: