Support » Fixing WordPress » insertBlock() function in 5.6.x

  • The insertBlock() Gutenberg JS function does not seem to be working as it did in WordPress version 5.5.3. On version 5.6.x, innerBlocks[] does not always reflect the insertion of the new block. Did anything change that would impact the results if the insertBlock function. Tried using ‘core/block-editor’ ).insertBlocks instead, but it had the same problem.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey there I don’t have an answer but did you solve this. I’m noticing a lot of breaking chances in 5.6 for gutenberg.

    I’ve built a custom block generator and the block tool bar, for re-arranging blocks apply bold styles etc. Is no longer clickable. Reverting 5.5.3 fixes all of these issues. I’m going to create a separate ticket referencing this one as well



    So I ran through this list, created a new environment as well no luck. I did find this warning when I click on a block for the first time. Any suggestions?

    block-editor.min.js?ver=7bc2f41a2f2e0da426f12f29b2139cae:12 [Violation] Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See

    Possible solution, it fixed my environment. I’d try using this github as a starter. It has a different component tree and it solved my problems. Just try slotting your code into it

    @nathan888, I’m not looking for a solution that changes WordPress to comply with my code but rather a solution that makes my code comply with WordPress.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.