Skip to content

Commit

Permalink
Use type=search for site filter inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
palant committed Apr 27, 2023
1 parent 05d320f commit 08915cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/allpasswords/components/SiteList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

<div class="filter-row">
<label for="site-filter">{{ $t("filters") }}</label>
<input id="site-filter" v-model.trim="siteFilter" :placeholder="$t('site_filter_placeholder')">
<input id="site-filter" v-model.trim="siteFilter" type="search" :placeholder="$t('site_filter_placeholder')">
<select v-if="tags.length" v-model="tagFilter">
<option :value="null">{{ $t("tag_filter_placeholder") }}</option>
<option v-for="tag in tags" :key="tag">{{ tag }}</option>
Expand Down
2 changes: 1 addition & 1 deletion ui/panel/components/SiteSelection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<label for="site-selection-site">{{ message }}</label>
<input
id="site-selection-site" v-model.trim="value" v-focus v-select
type="text" placeholder="example.com" autocomplete="off"
type="search" placeholder="example.com" autocomplete="off"
@keydown.arrow-down.prevent="activeIndex = Math.min(activeIndex + 1, sites.length - 1)"
@keydown.arrow-up.prevent="activeIndex = Math.max(activeIndex - 1, -1)"
@keydown.enter="enter"
Expand Down

0 comments on commit 08915cc

Please sign in to comment.