Commit 344ca899 authored by Pascal Hartig's avatar Pascal Hartig

Fix selection

parent a6f91f6d
......@@ -235,7 +235,8 @@ todoItem address todo =
, input
[ value todo.description
, name "title"
, classList [ ("edit", True), ("todo-" ++ toString todo.id, True)]
, class "edit"
, id ("todo-" ++ toString todo.id)
, on "input" targetValue (Signal.message address << UpdateTask todo.id)
, onBlur address (EditingTask todo.id False)
, onEnter address (EditingTask todo.id False)
......
......@@ -13429,14 +13429,10 @@ Elm.Todo.make = function (_elm) {
,A2($Html.input,
_L.fromArray([$Html$Attributes.value(todo.description)
,$Html$Attributes.name("title")
,$Html$Attributes.classList(_L.fromArray([{ctor: "_Tuple2"
,_0: "edit"
,_1: true}
,{ctor: "_Tuple2"
,_0: A2($Basics._op["++"],
"todo-",
$Basics.toString(todo.id))
,_1: true}]))
,$Html$Attributes.$class("edit")
,$Html$Attributes.id(A2($Basics._op["++"],
"todo-",
$Basics.toString(todo.id)))
,A3($Html$Events.on,
"input",
$Html$Events.targetValue,
......@@ -13567,7 +13563,7 @@ Elm.Todo.make = function (_elm) {
"#todo-",
$Basics.toString(_v3._0));}
_U.badCase($moduleName,
"on line 334, column 42 to 65");
"on line 335, column 42 to 65");
}();
};
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