app/assets/javascripts/binda/components/radio-toggle.js
export default function() {
$('input[name="login"]').click(function() {
let $radio = $(this);
// if this was previously checked
if ($radio.data("waschecked") === true) {
$radio.prop("checked", false);
$radio.data("waschecked", false);
} else $radio.data("waschecked", true);
// remove was checked from other radios
$radio.siblings('input[name="login"]').data("waschecked", false);
});
}