elm-architecture-tutorial icon indicating copy to clipboard operation
elm-architecture-tutorial copied to clipboard

Wrap form inputs in a span for compatibility with browser extensions

Open craiglyons opened this issue 6 years ago • 0 comments

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

craiglyons avatar Jan 13 '19 15:01 craiglyons