mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-03-31 05:15:08 +00:00
Fix textarea issue
This commit is contained in:
parent
6d0c140e8e
commit
8058bdd398
@ -1278,8 +1278,9 @@ renderEditForm model =
|
|||||||
[ rows 6
|
[ rows 6
|
||||||
, autocomplete False
|
, autocomplete False
|
||||||
, onInput SetNotes
|
, onInput SetNotes
|
||||||
|
, Maybe.withDefault "" model.notesModel |> value
|
||||||
]
|
]
|
||||||
[ Maybe.withDefault "" model.notesModel |> text ]
|
[]
|
||||||
, button [ class "ui icon button", onClick SaveNotes ]
|
, button [ class "ui icon button", onClick SaveNotes ]
|
||||||
[ i [ class "save outline icon" ] []
|
[ i [ class "save outline icon" ] []
|
||||||
]
|
]
|
||||||
|
@ -205,8 +205,11 @@ view model =
|
|||||||
]
|
]
|
||||||
, div [ class "field" ]
|
, div [ class "field" ]
|
||||||
[ label [] [ text "Body" ]
|
[ label [] [ text "Body" ]
|
||||||
, textarea [ onInput SetBody ]
|
, textarea
|
||||||
[ text model.body ]
|
[ onInput SetBody
|
||||||
|
, value model.body
|
||||||
|
]
|
||||||
|
[]
|
||||||
]
|
]
|
||||||
, div [ class "inline field" ]
|
, div [ class "inline field" ]
|
||||||
[ div [ class "ui checkbox" ]
|
[ div [ class "ui checkbox" ]
|
||||||
|
@ -136,6 +136,10 @@ view model =
|
|||||||
[ text "Notes"
|
[ text "Notes"
|
||||||
]
|
]
|
||||||
, div [ class "field" ]
|
, div [ class "field" ]
|
||||||
[ textarea [ onInput SetNotes ] [ Maybe.withDefault "" model.notes |> text ]
|
[ textarea
|
||||||
|
[ onInput SetNotes
|
||||||
|
, Maybe.withDefault "" model.notes |> value
|
||||||
|
]
|
||||||
|
[]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -161,6 +161,10 @@ view model =
|
|||||||
[ text "Notes"
|
[ text "Notes"
|
||||||
]
|
]
|
||||||
, div [ class "field" ]
|
, div [ class "field" ]
|
||||||
[ textarea [ onInput SetNotes ] [ Maybe.withDefault "" model.notes |> text ]
|
[ textarea
|
||||||
|
[ onInput SetNotes
|
||||||
|
, Maybe.withDefault "" model.notes |> value
|
||||||
|
]
|
||||||
|
[]
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
@ -152,7 +152,11 @@ view flags model =
|
|||||||
]
|
]
|
||||||
, div [ class "field" ]
|
, div [ class "field" ]
|
||||||
[ label [] [ text "Description" ]
|
[ label [] [ text "Description" ]
|
||||||
, textarea [ onInput SetDescr ] [ model.description |> Maybe.withDefault "" |> text ]
|
, textarea
|
||||||
|
[ onInput SetDescr
|
||||||
|
, model.description |> Maybe.withDefault "" |> value
|
||||||
|
]
|
||||||
|
[]
|
||||||
]
|
]
|
||||||
, div [ class "inline field" ]
|
, div [ class "inline field" ]
|
||||||
[ div [ class "ui checkbox" ]
|
[ div [ class "ui checkbox" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user