Skip to content

Commit f0a5315

Browse files
chore(release): set package.json to 1.1.1 [skip ci]
## [1.1.1](v1.1.0...v1.1.1) (2022-01-30) ### Bug Fixes * fixed focus in case of multiple occurrences ([86a7532](86a7532))
1 parent 86a7532 commit f0a5315

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
## [1.1.1](https://github.com/kouts/vue-search-input/compare/v1.1.0...v1.1.1) (2022-01-30)
2+
3+
4+
### Bug Fixes
5+
6+
* fixed focus in case of multiple occurrences ([86a7532](https://github.com/kouts/vue-search-input/commit/86a753201eb7e35fe7f50455aae0a73a18da82ce))
7+
18
# [1.1.0](https://github.com/kouts/vue-search-input/compare/v1.0.4...v1.1.0) (2022-01-23)
29

310

dist/vue-search-input.es.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ const _sfc_main = defineComponent({
8484
const onDocumentKeydown = (e) => {
8585
if (e.key === props.shortcutKey && e.target !== inputRef.value && window.document.activeElement !== inputRef.value && e.target instanceof HTMLInputElement === false && e.target instanceof HTMLSelectElement === false && e.target instanceof HTMLTextAreaElement === false) {
8686
e.preventDefault();
87-
const allVisibleSearchInputs = [].slice.call(document.querySelectorAll("[data-search-input]")).filter((el) => {
87+
const allVisibleSearchInputs = [].slice.call(document.querySelectorAll('[data-search-input="true"]:not([data-shortcut-enabled="false"])')).filter((el) => {
8888
return !!(el.offsetWidth || el.offsetHeight || el.getClientRects().length);
8989
});
9090
const elToFocus = allVisibleSearchInputs.length > 1 ? allVisibleSearchInputs[0] : inputRef.value;
@@ -118,7 +118,7 @@ const _sfc_main = defineComponent({
118118
}
119119
});
120120
const _hoisted_1 = /* @__PURE__ */ createElementVNode("i", { class: "search-icon search" }, null, -1);
121-
const _hoisted_2 = ["value"];
121+
const _hoisted_2 = ["data-shortcut-enabled", "value"];
122122
const _hoisted_3 = /* @__PURE__ */ createElementVNode("i", {
123123
class: "search-icon shortcut",
124124
title: 'Press "/" to search'
@@ -134,6 +134,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
134134
ref: "inputRef",
135135
type: "search",
136136
"data-search-input": "true",
137+
"data-shortcut-enabled": _ctx.shortcutListenerEnabled,
137138
value: _ctx.modelValue
138139
}, _ctx.attrsWithoutStyles, {
139140
onInput: _cache[0] || (_cache[0] = (...args) => _ctx.onInput && _ctx.onInput(...args)),

dist/vue-search-input.umd.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)