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