Remove custom placeholder solution with standard HTML.
This commit is contained in:
parent
1229625f56
commit
bafb84499e
|
@ -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: {
|
||||||
|
|
Loading…
Reference in New Issue