Descriptions’ textareas fixed.

This commit is contained in:
Luka Vandervelden 2019-07-08 06:47:18 +02:00
parent dd51b24264
commit dba6a026fc

View File

@ -125,7 +125,7 @@ Task = (self, project) ->
if model.editing == self.id + ".description" if model.editing == self.id + ".description"
h \form.form [ h \form.form [
h \textarea.textarea { h \textarea.textarea {
value: self.description value: model.editing-data
oninput: (e) -> oninput: (e) ->
model.editing-data := e.target.value model.editing-data := e.target.value
} }
@ -146,6 +146,7 @@ Task = (self, project) ->
if is-selected if is-selected
h \span.button.is-small { h \span.button.is-small {
onclick: -> onclick: ->
model.editing-data := self.description
model.editing := self.id + ".description" model.editing := self.id + ".description"
} [ } [
"edit" "edit"