stylish-elephants icon indicating copy to clipboard operation
stylish-elephants copied to clipboard

onChange = Nothing disables onClick

Open puruzio opened this issue 6 years ago • 0 comments

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
                }
            ]

puruzio avatar Apr 20 '18 21:04 puruzio