From 37a7616519da3391dfdaa6588d4b84c53ce6a283 Mon Sep 17 00:00:00 2001 From: Shane Streator <35476261+shanestreator@users.noreply.github.com> Date: Sun, 18 Jun 2023 15:36:16 -0500 Subject: [PATCH] disableSearch init commit (#239) * disableSearch init commit * revert unnecessary changes * add sentence on inputmode='none' use case for hiding mobile on-screen keyboards to readme --------- Co-authored-by: Janosh Riebesell --- readme.md | 2 +- src/lib/MultiSelect.svelte | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 7347c61..7765796 100644 --- a/readme.md +++ b/readme.md @@ -218,7 +218,7 @@ Full list of props/bindable variables for this component. The `Option` type you inputmode: string | null = null ``` - The `inputmode` attribute hints at the type of data the user may enter. Values like `'numeric' | 'tel' | 'email'` allow browsers to display an appropriate virtual keyboard. See [MDN](https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode) for details. + The `inputmode` attribute hints at the type of data the user may enter. Values like `'numeric' | 'tel' | 'email'` allow mobile browsers to display an appropriate virtual on-screen keyboard. See [MDN](https://developer.mozilla.org/docs/Web/HTML/Global_attributes/inputmode) for details. If you want to suppress the on-screen keyboard to leave full-screen real estate for the dropdown list of options, set `inputmode="none"`. 1. ```ts invalid: boolean = false diff --git a/src/lib/MultiSelect.svelte b/src/lib/MultiSelect.svelte index f10ad8c..66a90dc 100644 --- a/src/lib/MultiSelect.svelte +++ b/src/lib/MultiSelect.svelte @@ -460,6 +460,7 @@ role="searchbox" tabindex="-1" > +