There is a bug in the Basic Button component. When setting its type to "Toggle", it doesn't function as expected.
Solution:
The issue is caused by duplicate lines of code in the BasicButton.vb file. Removing one of these duplicate lines will resolve the problem.