diff --git a/src/components/Input.svelte b/src/components/Input.svelte
index 142500099..b07e74d8f 100644
--- a/src/components/Input.svelte
+++ b/src/components/Input.svelte
@@ -44,8 +44,21 @@
{pattern}
on:change
on:input={handleInput}
+ on:focus={() => { dispatch('focus'); }}
+ on:blur={() => { dispatch('blur'); }}
class={`w-full ${
icon ? 'pl-12' : 'pl-4'
} min-h-full pr-4 text-white placeholder-gray-500 leading-none bg-transparent border-none focus:outline-none`}
/>
+
+
+
diff --git a/src/components/InputSearch.svelte b/src/components/InputSearch.svelte
new file mode 100644
index 000000000..289b44fe3
--- /dev/null
+++ b/src/components/InputSearch.svelte
@@ -0,0 +1,51 @@
+
+
+
+ { dispatch('input'); }}
+ on:focus={validateInputButtonCancel}
+ on:blur={validateInputButtonCancel}
+ bind:value={value}
+ />
+ {#if showInputButtonCancel}
+
+
+
+ {/if}
+
diff --git a/src/routes/achievement/index.svelte b/src/routes/achievement/index.svelte
index 868e68467..c6bb57a0f 100644
--- a/src/routes/achievement/index.svelte
+++ b/src/routes/achievement/index.svelte
@@ -14,6 +14,7 @@
import { readSave, updateSave, fromRemote } from '../../stores/saveManager';
import Button from '../../components/Button.svelte';
import Icon from '../../components/Icon.svelte';
+ import InputSearch from '../../components/InputSearch.svelte';
import Select from '../../components/Select.svelte';
import { pushToast } from '../../stores/toast';
import Ad from '../../components/Ad.svelte';
@@ -406,19 +407,12 @@
{#if showFilter}
-
-
-
-
+
+