This code tries to extract the value stored in {{this.result}}
of the attribute value
of the html input element
<input type="radio" value={{this.result}}>
Template.options.events({
'click .twin-item': (event) => {
let elem = event.target;
console.log( elem.value);
}
});
<template name="options">
<div class="twin-group js-radioGroup" data-id={{_id}}>
<ul class="upShift">
{{#each values}}
<li>
<label class="twin-item">
<input type="radio" value={{this.result}}>
<span class="radio-label">{{this.label}}</span>
</label>
</li>
{{/each}}
</ul>
</div>
</template>
But the browser console is printing 2 lines, the first undefined and the second is the value I want.
How can I just get one print out which is the correct value I want? thx