Commit a6f91f6d authored by Pascal Hartig's avatar Pascal Hartig

Fix edit display

parent 7cdcf5a8
...@@ -233,10 +233,9 @@ todoItem address todo = ...@@ -233,10 +233,9 @@ todoItem address todo =
[] []
] ]
, input , input
[ class "edit" [ value todo.description
, value todo.description
, name "title" , name "title"
, class ("todo-" ++ toString todo.id) , classList [ ("edit", True), ("todo-" ++ toString todo.id, True)]
, on "input" targetValue (Signal.message address << UpdateTask todo.id) , on "input" targetValue (Signal.message address << UpdateTask todo.id)
, onBlur address (EditingTask todo.id False) , onBlur address (EditingTask todo.id False)
, onEnter address (EditingTask todo.id False) , onEnter address (EditingTask todo.id False)
......
...@@ -13427,12 +13427,16 @@ Elm.Todo.make = function (_elm) { ...@@ -13427,12 +13427,16 @@ Elm.Todo.make = function (_elm) {
Delete(todo.id))]), Delete(todo.id))]),
_L.fromArray([]))])) _L.fromArray([]))]))
,A2($Html.input, ,A2($Html.input,
_L.fromArray([$Html$Attributes.$class("edit") _L.fromArray([$Html$Attributes.value(todo.description)
,$Html$Attributes.value(todo.description)
,$Html$Attributes.name("title") ,$Html$Attributes.name("title")
,$Html$Attributes.$class(A2($Basics._op["++"], ,$Html$Attributes.classList(_L.fromArray([{ctor: "_Tuple2"
"todo-", ,_0: "edit"
$Basics.toString(todo.id))) ,_1: true}
,{ctor: "_Tuple2"
,_0: A2($Basics._op["++"],
"todo-",
$Basics.toString(todo.id))
,_1: true}]))
,A3($Html$Events.on, ,A3($Html$Events.on,
"input", "input",
$Html$Events.targetValue, $Html$Events.targetValue,
...@@ -13563,7 +13567,7 @@ Elm.Todo.make = function (_elm) { ...@@ -13563,7 +13567,7 @@ Elm.Todo.make = function (_elm) {
"#todo-", "#todo-",
$Basics.toString(_v3._0));} $Basics.toString(_v3._0));}
_U.badCase($moduleName, _U.badCase($moduleName,
"on line 335, column 42 to 65"); "on line 334, column 42 to 65");
}(); }();
}; };
var needsFocus = function (act) { var needsFocus = function (act) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment