OvermindDL1 / bucklescript-tea

TEA for Bucklescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`onWithOptions` is missing

tcoopman opened this issue · comments

Title says it all (http://package.elm-lang.org/packages/evancz/elm-html/4.0.0/Html-Events#onWithOptions).
I would create a PR, but the vdom stuff about onCB and onMsg is not completely clear to me.

Yeah I always meant to add it, been working on the event directly in the main callback currently as a more direct work-around... >.>

Leaving this open until added. :-)

That pointer was sufficient to fix my problem. If anyone else wants the same:

        button [onCB "click" "someKey" (fun event -> 
          event##preventDefault () |> ignore;
          event##stopPropagation () |> ignore;
          Some Msg)
        ] [...]

PR #82 takes a stab at adding onWithOptions and friends among other things 😀

Whoo right! This one can be closed now! :-)