diff options
author | Joris Guyonvarch | 2015-03-22 14:22:50 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-22 14:22:50 +0100 |
commit | 8f9074bf4a4062282f381cf6a4518b191c66cb15 (patch) | |
tree | 57f177afccd1a4d00d2052f12039fa103155f2dc /src/View | |
parent | 1ecd777c185cacbf640dc3ab46b84065ef3b40d9 (diff) |
Change from button element to div element to prevent space and enter trigger on name and time
Diffstat (limited to 'src/View')
-rw-r--r-- | src/View/Timer.elm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/View/Timer.elm b/src/View/Timer.elm index 100514a..c8b6561 100644 --- a/src/View/Timer.elm +++ b/src/View/Timer.elm @@ -39,7 +39,7 @@ timerView model (id, timer) = nameBlockReadOnly : Id -> Timer -> Html nameBlockReadOnly id timer = - button + div [ class "name block" , onClick (Signal.send updates (Edit id Name)) ] @@ -47,7 +47,7 @@ nameBlockReadOnly id timer = nameBlockEdition : Id -> Timer -> Edition -> Html nameBlockEdition id timer edition = - button + div [ [ (True, "name block edition") , (List.isEmpty edition.chars, "empty") ] @@ -68,7 +68,7 @@ timerName id = Maybe.withDefault ("Timer " ++ toString id) << .name timeBlockReadOnly : Id -> Timer -> Html timeBlockReadOnly id timer = - button + div [ [ (True, "time block") , (timer.state == Ringing, "isRinging") , (timer.state == Running, "isRunning") @@ -84,7 +84,7 @@ timeBlockReadOnly id timer = timeBlockEdition : Timer -> Edition -> Html timeBlockEdition timer edition = let isEmptyEdition = List.isEmpty edition.chars - in button + in div [ [ (True, "time block edition") , (isEmptyEdition, "empty") ] |