Skip to content

Commit

Permalink
Set field readonly to remove React warning
Browse files Browse the repository at this point in the history
  • Loading branch information
theprash committed Feb 5, 2018
1 parent d10a746 commit 2f53c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/pages/Details.fs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let private content txn =
|> Option.map(fun v ->
div [ ClassName "form-group row" ] [
label [ HtmlFor name; ClassName "col-sm-4 col-form-label" ] [ str name ]
div [ ClassName "col-sm-8" ] [ input [ Type "text"; ClassName "form-control-plaintext"; Id name; Value v ] ]
div [ ClassName "col-sm-8" ] [ input [ Type "text"; ClassName "form-control-plaintext"; Id name; Value v; ReadOnly true ] ]
])
|> Option.defaultValue (div [] [])

Expand Down

0 comments on commit 2f53c10

Please sign in to comment.