We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8781f62 commit cd39e77Copy full SHA for cd39e77
src/Json/Form.elm
@@ -31,7 +31,7 @@ import Task
31
32
type ExternalMsg
33
= None
34
- | UpdateValue (Maybe JsonValue) Bool
+ | UpdateValue (Maybe JsonValue) (DictPath(ListString))
35
36
37
type alias Model =
@@ -405,16 +405,20 @@ editValue model path val =
405
}
406
, Cmd.none
407
)
408
- |> withExMsg (UpdateValue (Just updatedJsonValue) True)
+ |> withExMsg (UpdateValue (Just updatedJsonValue) Dict.empty)
409
410
Err e ->
411
+ let
412
+ errors =
413
+ dictFromListErrors e
414
+ in
415
( { model
416
| value = Just updatedJsonValue
- , errors = dictFromListErrors e
417
+ , errors = errors
418
419
420
- |> withExMsg (UpdateValue (Just updatedJsonValue) False)
421
+ |> withExMsg (UpdateValue (Just updatedJsonValue) errors)
422
423
424
dictFromListErrors : List Error -> Dict Path (List String)
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments