I can hide input type file and trigger it from another element like so:
<button @click="$refs.fileRef.click()"></button>
<input type="file" ref="fileRef" style="display: none">
but when I try that with input type date it doesn't work:
<button @click="$refs.dateRef.click()"></button>
<input type="date" ref="dateRef" style="display: none">
Any way I can activate the date picker via ref?
from How to use input type date in ref?
No comments:
Post a Comment