Skip to content

Commit 31c8ebd

Browse files
committed
Remove browser autocomplete
1 parent 1fdbb5f commit 31c8ebd

6 files changed

+175
-172
lines changed

dist/vue3-simple-typeahead.css

+24-24
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
11

2-
.simple-typeahead[data-v-47f054d4] {
3-
position: relative;
4-
width: 100%;
2+
.simple-typeahead[data-v-a4e4a1da] {
3+
position: relative;
4+
width: 100%;
55
}
6-
.simple-typeahead > input[data-v-47f054d4] {
7-
margin-bottom: 0;
6+
.simple-typeahead > input[data-v-a4e4a1da] {
7+
margin-bottom: 0;
88
}
9-
.simple-typeahead .simple-typeahead-list[data-v-47f054d4] {
10-
position: absolute;
11-
width: 100%;
12-
border: none;
13-
max-height: 400px;
14-
overflow-y: auto;
15-
border-bottom: 0.1rem solid #d1d1d1;
16-
z-index: 9;
9+
.simple-typeahead .simple-typeahead-list[data-v-a4e4a1da] {
10+
position: absolute;
11+
width: 100%;
12+
border: none;
13+
max-height: 400px;
14+
overflow-y: auto;
15+
border-bottom: 0.1rem solid #d1d1d1;
16+
z-index: 9;
1717
}
18-
.simple-typeahead .simple-typeahead-list .simple-typeahead-list-item[data-v-47f054d4] {
19-
cursor: pointer;
20-
background-color: #fafafa;
21-
padding: 0.6rem 1rem;
22-
border-bottom: 0.1rem solid #d1d1d1;
23-
border-left: 0.1rem solid #d1d1d1;
24-
border-right: 0.1rem solid #d1d1d1;
18+
.simple-typeahead .simple-typeahead-list .simple-typeahead-list-item[data-v-a4e4a1da] {
19+
cursor: pointer;
20+
background-color: #fafafa;
21+
padding: 0.6rem 1rem;
22+
border-bottom: 0.1rem solid #d1d1d1;
23+
border-left: 0.1rem solid #d1d1d1;
24+
border-right: 0.1rem solid #d1d1d1;
2525
}
26-
.simple-typeahead .simple-typeahead-list .simple-typeahead-list-item[data-v-47f054d4]:last-child {
27-
border-bottom: none;
26+
.simple-typeahead .simple-typeahead-list .simple-typeahead-list-item[data-v-a4e4a1da]:last-child {
27+
border-bottom: none;
2828
}
29-
.simple-typeahead .simple-typeahead-list .simple-typeahead-list-item.simple-typeahead-list-item-active[data-v-47f054d4] {
30-
background-color: #e1e1e1;
29+
.simple-typeahead .simple-typeahead-list .simple-typeahead-list-item.simple-typeahead-list-item-active[data-v-a4e4a1da] {
30+
background-color: #e1e1e1;
3131
}

dist/vue3-simple-typeahead.esm.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ var script = /*#__PURE__*/defineComponent({
150150
}
151151
});
152152

153-
pushScopeId("data-v-47f054d4");
153+
pushScopeId("data-v-a4e4a1da");
154154

155155
const _hoisted_1 = ["id"];
156156
const _hoisted_2 = ["id", "placeholder"];
@@ -175,7 +175,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
175175
onInput: _cache[1] || (_cache[1] = (...args) => _ctx.onInput && _ctx.onInput(...args)),
176176
onFocus: _cache[2] || (_cache[2] = (...args) => _ctx.onFocus && _ctx.onFocus(...args)),
177177
onBlur: _cache[3] || (_cache[3] = (...args) => _ctx.onBlur && _ctx.onBlur(...args)),
178-
onKeydown: [_cache[4] || (_cache[4] = withKeys(withModifiers((...args) => _ctx.onArrowDown && _ctx.onArrowDown(...args), ["prevent"]), ["down"])), _cache[5] || (_cache[5] = withKeys(withModifiers((...args) => _ctx.onArrowUp && _ctx.onArrowUp(...args), ["prevent"]), ["up"])), _cache[6] || (_cache[6] = withKeys(withModifiers((...args) => _ctx.selectCurrentSelection && _ctx.selectCurrentSelection(...args), ["prevent"]), ["enter", "tab"]))]
178+
onKeydown: [_cache[4] || (_cache[4] = withKeys(withModifiers((...args) => _ctx.onArrowDown && _ctx.onArrowDown(...args), ["prevent"]), ["down"])), _cache[5] || (_cache[5] = withKeys(withModifiers((...args) => _ctx.onArrowUp && _ctx.onArrowUp(...args), ["prevent"]), ["up"])), _cache[6] || (_cache[6] = withKeys(withModifiers((...args) => _ctx.selectCurrentSelection && _ctx.selectCurrentSelection(...args), ["prevent"]), ["enter", "tab"]))],
179+
autocomplete: "off"
179180
}, null, 40, _hoisted_2), [[vModelText, _ctx.input]]), _ctx.isListVisible ? (openBlock(), createElementBlock("div", _hoisted_3, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.filteredItems, (item, index) => {
180181
return openBlock(), createElementBlock("div", {
181182
class: normalizeClass(["simple-typeahead-list-item", {
@@ -194,7 +195,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
194195
}
195196

196197
script.render = render;
197-
script.__scopeId = "data-v-47f054d4";
198+
script.__scopeId = "data-v-a4e4a1da";
198199

199200
// Import vue component
200201
// IIFE injects install function into component, allowing component

dist/vue3-simple-typeahead.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/vue3-simple-typeahead.ssr.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ function _nonIterableRest() {
190190
return this.isListVisible && this.currentSelectionIndex < this.filteredItems.length ? this.filteredItems[this.currentSelectionIndex] : undefined;
191191
}
192192
}
193-
});vue.pushScopeId("data-v-47f054d4");
193+
});vue.pushScopeId("data-v-a4e4a1da");
194194

195195
var _hoisted_1 = ["id"];
196196
var _hoisted_2 = ["id", "placeholder"];
@@ -229,7 +229,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
229229
return _ctx.onArrowUp && _ctx.onArrowUp.apply(_ctx, arguments);
230230
}, ["prevent"]), ["up"])), _cache[6] || (_cache[6] = vue.withKeys(vue.withModifiers(function () {
231231
return _ctx.selectCurrentSelection && _ctx.selectCurrentSelection.apply(_ctx, arguments);
232-
}, ["prevent"]), ["enter", "tab"]))]
232+
}, ["prevent"]), ["enter", "tab"]))],
233+
autocomplete: "off"
233234
}, null, 40, _hoisted_2), [[vue.vModelText, _ctx.input]]), _ctx.isListVisible ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.filteredItems, function (item, index) {
234235
return vue.openBlock(), vue.createElementBlock("div", {
235236
class: vue.normalizeClass(["simple-typeahead-list-item", {
@@ -250,7 +251,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
250251
}, null, 8, _hoisted_5)], 42, _hoisted_4);
251252
}), 128))])) : vue.createCommentVNode("", true)], 8, _hoisted_1);
252253
}script.render = render;
253-
script.__scopeId = "data-v-47f054d4";// Import vue component
254+
script.__scopeId = "data-v-a4e4a1da";// Import vue component
254255
// IIFE injects install function into component, allowing component
255256
// to be registered via Vue.use() as well as Vue.component(),
256257

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-simple-typeahead",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "A simple and lightweight Vue3 typeahead component that show a suggested list of elements while the user types in.",
55
"author": "frikinside <[email protected]> (http://frikinside.net/)",
66
"license": "MIT",

0 commit comments

Comments
 (0)