Repository navigation
Fix sibling block inserter displaying at end of block list. - #29920
Conversation
|
Size Change: +10 B (0%) Total Size: 1.4 MB
ℹ️ View Unchanged
|
2ee5abd to
da8b765
Compare
da8b765 to
1955412
Compare
|
I'm not completely sure why this suddenly caused a consistent test failure, but the test was selecting a template part by clicking, and was failing because it clicked the inserter between two columns in the template part. Testing manually, the same thing happens in It's actually pretty difficult to select the template part by clicking the block itself, so I've updated the test to use List View to select the block. Edit: same issue with the document settings test as well. |
|
|
||
| // Only show the inserter when there's a `nextElement` (a block after the | ||
| // insertion point). At the end of the block list the trailing appender | ||
| // should serve the purpose of inserting blocks. |
There was a problem hiding this comment.
What if there's no appender available?
There was a problem hiding this comment.
I don't think that's an issue, from what I understand this inserter was never intended to show at the end of a block list. Its appearance there is a bug from #28418.
|
Thanks for reviewing @ellatrix. |
|
Thanks for fixing this :) I appreciate it. |
* Only show inserter version of insertion point if there is a next block * Clarify comment * Improve boolean logic * Update e2e test * Update tests
* Only show inserter version of insertion point if there is a next block * Clarify comment * Improve boolean logic * Update e2e test * Update tests
Description
Fixes #28907
How has this been tested?
Types of changes
Bug fix (non-breaking change which fixes an issue)
Checklist: