Skip to content

Commit 1c16276

Browse files
authored
Merge pull request #3 from platonovAlexey/clear-textarea-after-submit
clear textarea after submit, fix style textarea
2 parents 85ca18d + 01db80a commit 1c16276

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050
textarea {
5151
display: block;
52-
width: 200px;
52+
max-width: 200px;
5353
padding: 8px;
5454
margin: 10px;
5555
border: 1px solid #ccc;
@@ -161,6 +161,7 @@ <h2>{{title}}</h2>
161161
text,
162162
date: new Date(Date.now()).toLocaleString(),
163163
})
164+
this.note.text = ''
164165
},
165166
removeNote(index) {
166167
this.$delete(this.notes, index)

0 commit comments

Comments
 (0)