Can someone please help me understand dynamic refs in Vue3? I have a group of radio buttons and trying to return the value of the selected button. In the code below the same value is returned regardless of which button I click.
@mpk123 I don’t really understand what you’re trying to do with the ref in the first place. You don’t need it. You should be using v-model as you are. So long as each radio input has the same name attribute value, then the selected value will be available as the v-model value:
Im trying to pass the value of the clicked on radio into a function. Im just using console log log to keep it simple. When i remove the ref i get the current value. Not the clicked on value.