Remove custom placeholder solution with standard HTML.

This commit is contained in:
Lukáš Kucharczyk 2020-08-25 16:39:06 +02:00
parent 1229625f56
commit bafb84499e
1 changed files with 4 additions and 4 deletions

View File

@ -1,10 +1,10 @@
<template> <template>
<textarea <textarea
@keyup.enter="addNote" @keyup.enter="addNote"
onfocus="this.value=''"
onblur="this.value = 'Start typing something…'"
v-model="content" v-model="content"
rows="10" rows="10"
placeholder="Start typing something…"
autofocus
></textarea> ></textarea>
<div <div
class="note" class="note"
@ -25,8 +25,8 @@ export default {
{ id: 0, text: 'This is a note' }, { id: 0, text: 'This is a note' },
{ id: 1, text: 'And another one.' } { id: 1, text: 'And another one.' }
], ],
content: 'Start typing something…', current: null,
current: null content: null
} }
}, },
methods: { methods: {