Disable autocorrect/autocomplete in import query input

This commit is contained in:
Claudio Ortolina
2024-10-28 10:50:55 +00:00
parent 86f474b78f
commit 850a3c7d90
3 changed files with 7 additions and 4 deletions
@@ -300,7 +300,8 @@ defmodule MusicLibraryWeb.CoreComponents do
attr :multiple, :boolean, default: false, doc: "the multiple flag for select inputs"
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)
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")}
prompt={gettext("Search for records")}
phx-debounce="500"
autocorrect="off"
autocapitalize="none"
/>
</.simple_form>
<ul
+3 -3
View File
@@ -11,7 +11,7 @@
msgid ""
msgstr ""
#: lib/music_library_web/components/core_components.ex:515
#: lib/music_library_web/components/core_components.ex:516
#, elixir-autogen, elixir-format
msgid "Actions"
msgstr ""
@@ -153,7 +153,7 @@ msgstr ""
msgid "Type"
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
msgid "No results"
msgstr ""
@@ -214,7 +214,7 @@ msgstr ""
msgid "Import from MusicBrainz"
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/wishlist_live/index.html.heex:99
#, elixir-autogen, elixir-format