On-going conversation about how to handle that (in my opinion an
`onWithOptions` should not 'take' options but rather should return them
along with the message as a tuple, but it does not function that way
currently). The current work-around is to use ports (register your event
listener in javascript after an initial render then call back in to elm
from the event callback via 'push').
On Friday, October 21, 2016 at 9:18:45 AM UTC-6, Jacky See wrote:
>
> In the js version of the code would look like
>
>
> el.addEventListener('keyup', function(ev){
> if(ev.keyCode == 32){
> ev.preventDefault();
> }
> });
>
>
> Can't seems to do that in current Html.Events.onWithOptions
>
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.