I have the same problem, but it occurs with the Buttons plugin. I’ve added a button to a template. However, when I open the template or create a new note using the template, the button doesn’t show.
I have to click inside and then outside the code block to get the button to display.
After reading the posts in this bug report, I opened the template in reading mode, and there wasn’t any problem.