Disable autocorrect/autocomplete in import query input
This commit is contained in:
@@ -300,7 +300,8 @@ defmodule MusicLibraryWeb.CoreComponents do
|
|||||||
attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs"
|
attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs"
|
||||||
|
|
||||||
attr :rest, :global,
|
attr :rest, :global,
|
||||||
include: ~w(accept autocomplete capture cols disabled form list max maxlength min minlength
|
include:
|
||||||
|
~w(accept autocomplete autocorrect capture cols disabled form list max maxlength min minlength
|
||||||
multiple pattern placeholder readonly required rows size step)
|
multiple pattern placeholder readonly required rows size step)
|
||||||
|
|
||||||
def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
|
def input(%{field: %Phoenix.HTML.FormField{} = field} = assigns) do
|
||||||
|
|||||||
@@ -23,6 +23,8 @@ defmodule MusicLibraryWeb.RecordLive.ImportComponent do
|
|||||||
label={gettext("Search for a record on MusicBrainz")}
|
label={gettext("Search for a record on MusicBrainz")}
|
||||||
prompt={gettext("Search for records")}
|
prompt={gettext("Search for records")}
|
||||||
phx-debounce="500"
|
phx-debounce="500"
|
||||||
|
autocorrect="off"
|
||||||
|
autocapitalize="none"
|
||||||
/>
|
/>
|
||||||
</.simple_form>
|
</.simple_form>
|
||||||
<ul
|
<ul
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/components/core_components.ex:515
|
#: lib/music_library_web/components/core_components.ex:516
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Actions"
|
msgid "Actions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -153,7 +153,7 @@ msgstr ""
|
|||||||
msgid "Type"
|
msgid "Type"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_live/import_component.ex:39
|
#: lib/music_library_web/live/record_live/import_component.ex:41
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "No results"
|
msgid "No results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@@ -214,7 +214,7 @@ msgstr ""
|
|||||||
msgid "Import from MusicBrainz"
|
msgid "Import from MusicBrainz"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/music_library_web/live/record_live/import_component.ex:74
|
#: lib/music_library_web/live/record_live/import_component.ex:76
|
||||||
#: lib/music_library_web/live/record_live/index.html.heex:99
|
#: lib/music_library_web/live/record_live/index.html.heex:99
|
||||||
#: lib/music_library_web/live/wishlist_live/index.html.heex:99
|
#: lib/music_library_web/live/wishlist_live/index.html.heex:99
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
|
|||||||
Reference in New Issue
Block a user