clipboard onfocus select all

This commit is contained in:
m1k1o 2020-06-19 22:06:41 +02:00
parent 477256bb94
commit b7a7a9accb

View File

@ -4,7 +4,11 @@
v-if="opened" v-if="opened"
@click="$event.stopPropagation()" @click="$event.stopPropagation()"
> >
<textarea ref="textarea" v-model="clipboard" /> <textarea
ref="textarea"
v-model="clipboard"
@focus="$event.target.select()"
/>
</div> </div>
</template> </template>