Rather than putting "javascript:void(0)" into the template, you should probably just prevent the default action in the click handler.

Here you can see that using javascript: is discouraged.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/void#JavaScript_URIs

An example of prevent default in the prefsEditors repo:
https://github.com/GPII/prefsEditors/blob/master/src/shared/adjusters/js/onOffSwitch.js#L88