Skip to content

Should spellcheck="false" (et. al.) attributes be set by default? #1403

Closed
@winzig

Description

@winzig

I did:

  • Search for if my issue has already been submitted
  • Make sure I'm reporting something precise that needs to be fixed
  • Give my issue a descriptive and concise title
  • Create a minimal working example on JsFiddle or Codepen
    (or gave a link to a demo on the Selectize docs)
  • Indicate precise steps to reproduce in numbers and the result,
    like below

In the old days, autocomplete="off" was enough to keep browsers from messing with your text while typing in an input field. However, to cover various browser features across platforms, we tend to use this set of attributes:

autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"

Otherwise when trying to use selectize we end up with things like this happening:

screen shot 2018-05-17 at 2 54 16 pm

In a browser such as Safari, start typing a word such as "awful", stopping at "awf". You'll usually see spelling corrections suggested, as shown above, which interferes with the selectize functionality.

I would propose that these additional attributes be set on the <input> fields created dynamically by Selectize, or even better, "inherited" from the source input field if they have been defined in the existing HTML element.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions