Skip to content

Commit

Permalink
disableSearch init commit (#239)
Browse files Browse the repository at this point in the history
* 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 <janosh.riebesell@gmail.com>
  • Loading branch information
shanestreator and janosh committed Jun 18, 2023
1 parent c5ac1ae commit 37a7616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/lib/MultiSelect.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@
role="searchbox"
tabindex="-1"
>
<!-- form control input invisible to the user, only purpose is to abort form submission if this component fails data validation -->
<!-- bind:value={selected} prevents form submission if required prop is true and no options are selected -->
<input
{name}
Expand Down

0 comments on commit 37a7616

Please sign in to comment.