I'm using Dreamweaver 21.1 build 15413 on Windows 10 Pro. That may be the difference.
It is possible I'm doing something differently than you when I add the buttons too. What exactly are you clicking on and what are you using to add the code. If I can reproduce it, then I can usually fix it, but so far I haven't been able to see the issue.