evancz / elm-architecture-tutorial

How to create modular Elm code that scales nicely with your app
https://guide.elm-lang.org/
BSD 3-Clause "New" or "Revised" License
4.17k stars 738 forks source link

Wrap form inputs in a span for compatibility with browser extensions #132

Open craiglyons opened 5 years ago

craiglyons commented 5 years ago

Problem: The form example does not work with the 1Password browser extension in Chrome and Firefox. It may also be affected by other browsers / extensions.

Solution: Wrap inputs in a span element. This is applied to the function that generates the input elements, which gives the fix a very small footprint.

Related to: https://github.com/elm/virtual-dom/issues/147 https://github.com/evancz/guide.elm-lang.org/pull/185