diff --git a/js/layout-paragraphs-builder.js b/js/layout-paragraphs-builder.js index ee2928e8d4ce1cf95f949e2a09ece1a50b837542..6f34d9f8e01b880b4c77daa71c73c17c32ad6681 100644 --- a/js/layout-paragraphs-builder.js +++ b/js/layout-paragraphs-builder.js @@ -911,10 +911,8 @@ // Check to see if the next position is allowed by calling the 'accepts' callback. while ( targets[pos + dir] !== undefined && - this.emit('layout:accepts', { - el: this.$activeItem[0], - target: targets[pos + dir].parentNode, - }).indexOf(false) !== -1 + this.moveErrors(this.$activeItem[0], targets[pos + dir].parentNode) + .length > 0 ) { pos += dir; }