Disable the grammarly plugin on all textareas to prevent inserted nodes from crashing the vdom (#2061)
Signed-off-by: Stephen Reddekopp <stephen.reddekopp@gmail.com>
This commit is contained in:
parent
bad2e792ca
commit
f3a2ff8b7f
File diff suppressed because one or more lines are too long
|
@ -150,6 +150,7 @@ validatedTextareaField labelText classes inputMsg blurMsg field =
|
||||||
, onBlur blurMsg
|
, onBlur blurMsg
|
||||||
, class "form-control form-control-success"
|
, class "form-control form-control-success"
|
||||||
, rows lineCount
|
, rows lineCount
|
||||||
|
, disableGrammarly
|
||||||
]
|
]
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
|
@ -163,6 +164,7 @@ validatedTextareaField labelText classes inputMsg blurMsg field =
|
||||||
, onBlur blurMsg
|
, onBlur blurMsg
|
||||||
, class "form-control"
|
, class "form-control"
|
||||||
, rows lineCount
|
, rows lineCount
|
||||||
|
, disableGrammarly
|
||||||
]
|
]
|
||||||
[]
|
[]
|
||||||
]
|
]
|
||||||
|
@ -176,6 +178,7 @@ validatedTextareaField labelText classes inputMsg blurMsg field =
|
||||||
, onBlur blurMsg
|
, onBlur blurMsg
|
||||||
, class "form-control form-control-danger"
|
, class "form-control form-control-danger"
|
||||||
, rows lineCount
|
, rows lineCount
|
||||||
|
, disableGrammarly
|
||||||
]
|
]
|
||||||
[]
|
[]
|
||||||
, div [ class "form-control-feedback" ] [ text error_ ]
|
, div [ class "form-control-feedback" ] [ text error_ ]
|
||||||
|
@ -194,7 +197,7 @@ textField : String -> String -> String -> (String -> msg) -> Html msg
|
||||||
textField labelText content classes msg =
|
textField labelText content classes msg =
|
||||||
div [ class <| "d-flex flex-column " ++ classes ]
|
div [ class <| "d-flex flex-column " ++ classes ]
|
||||||
[ label [] [ strong [] [ text labelText ] ]
|
[ label [] [ strong [] [ text labelText ] ]
|
||||||
, textarea [ value content, onInput msg ] []
|
, textarea [ value content, onInput msg, disableGrammarly ] []
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -237,3 +240,8 @@ error : String -> Html msg
|
||||||
error err =
|
error err =
|
||||||
div [ class "alert alert-warning" ]
|
div [ class "alert alert-warning" ]
|
||||||
[ text (Utils.String.capitalizeFirst err) ]
|
[ text (Utils.String.capitalizeFirst err) ]
|
||||||
|
|
||||||
|
|
||||||
|
disableGrammarly : Html.Attribute msg
|
||||||
|
disableGrammarly =
|
||||||
|
attribute "data-gramm_editor" "false"
|
||||||
|
|
Loading…
Reference in New Issue