We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7764c67 commit 2c49ec2Copy full SHA for 2c49ec2
src/modules/adapter.js
@@ -174,7 +174,10 @@ class Adapter {
174
// try to catch "first" edge case on remove
175
if (!options.immutableTop && !newItems.length) {
176
// this is the first item, or the previous one's part of the "shift-top" group
177
- if (position === 0 || this.buffer[position - 1].shiftTop) {
+ if (
178
+ (position === 0 && this.buffer.bof) ||
179
+ (position !== 0 && this.buffer[position - 1].shiftTop)
180
+ ) {
181
wrapper.shiftTop = true;
182
}
183
0 commit comments