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

Prevent search boxes from auto-correcting #337

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/frontend/Page/Docs.elm
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ viewSidebar model =
[ placeholder "Search"
, value model.query
, onInput QueryChanged
, spellcheck False
, attribute "autocapitalize" "off"
, attribute "autocorrect" "off"
]
[]
, viewSidebarModules model
Expand Down
5 changes: 4 additions & 1 deletion src/frontend/Page/Search.elm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Page.Search exposing

import Elm.Version as V
import Html exposing (..)
import Html.Attributes exposing (autofocus, class, href, placeholder, style, value)
import Html.Attributes exposing (autofocus, class, href, placeholder, style, value, spellcheck, attribute)
import Html.Events exposing (..)
import Html.Lazy exposing (..)
import Html.Keyed as Keyed
Expand Down Expand Up @@ -117,6 +117,9 @@ viewSearch query entries =
, value query
, onInput QueryChanged
, autofocus True
, spellcheck False
, attribute "autocapitalize" "off"
, attribute "autocorrect" "off"
]
[]
, case entries of
Expand Down