stylish-elephants
stylish-elephants copied to clipboard
onChange = Nothing disables onClick
onClick doesn't work in the following example. Is that intended? If I change onChange = Nothing
to onChange = Just DummyMsg
onClick starts working.
view model =
Element.layout
[]
<|
column []
[ Input.multiline
----- this onClick isn't working'
[ onClick <| SomeMSG "text..."
]
{ label =
Input.labelAbove [] (text "")
, onChange =
Nothing
, placeholder =
Just
(Input.placeholder []
(text " ")
)
, spellcheck = False
, text = model.text
}
]