mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.35k stars 111 forks source link

`Element.Input`: `focusedOnLoad` does not work with `button` #145

Open hovind opened 5 years ago

hovind commented 5 years ago

Now that Element.Input.button produces a Html.div rather than a Html.button, the autofocus attribute set by Element.Input.focusedOnLoad is no longer valid.

Here is a demo. Uncomment Input.focusedOnLoad on the Input.text to see expected behaviour.

Expected behavior I expect Element.Input.focusedOnLoad to set the autofocus attribute on the element to which it is appied.

Versions

alexkorban commented 4 years ago

bug #has-ellie