Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix is-focused not being triggered on Firefox #173

Closed
wants to merge 1 commit into from

Conversation

vipentti
Copy link
Collaborator

@vipentti vipentti commented Aug 13, 2016

Unfortunately, Firefox does not support focusin and focusout events.
This works around the issue by adding internal focus and blur
handlers on the input element and then dispatching user provided
focus and blur handlers in update.

Resolves #166

Unfortunately, Firefox does not support `focusin` and `focusout` events.
This works around the issue by adding internal `focus` and `blur`
handlers on the `input` element and then dispatching user provided
`focus` and `blur` handlers in `update`.
List.filterMap identity
[ msg |> Maybe.map Helpers.cmd ]
in
(model', Cmd.batch cmds)
Copy link
Owner

@debois debois Aug 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe lose cmds and just do

     (model' , msg |> Maybe.map Helpers.cmd |> Maybe.withDefault Cmd.none)

(Could also add that to Helpers as maybeCmd.)

@debois
Copy link
Owner

debois commented Aug 14, 2016

I like this. I made a few line comments, in particular, I think listeners in Config should be a list and handlers for blur / focus separated out—you might avoid a little bit of overhead. But that's neither here nor there. Merge it when you're happy with it :)

@debois
Copy link
Owner

debois commented Aug 17, 2016

Superceded by #179.

@debois debois closed this Aug 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants