I'm submitting a ...
What is the current behavior?
When I click on input in chrome and type something, chrome showing me blue x and because of that, it's not showing a dropdown with possible values after response returned from the backend. On other browsers where I test it (firefox, safari) all works as expected
What is the expected behavior?
When I type something to the input, the app sending a request to the server and after getting a response should show me a dropdown with possible suggestions
How are you importing Vue-simple-suggest?
Please tell us about your environment:
- Vue.js Version: 2.6.11
- Vue-simple-suggest version: 1.10.2
- Browser: [all Chrome 86.0.4240.198 | Firefox 82.0.3 ]
- Language: ES6/7 | ES5
- Other information (e.g. detailed explanation, stack traces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, Gitter, etc)
** Sample code **
<div class="md-form">
<vue-simple-suggest
v-show="!city.isCityLoading"
v-model="city.searchInput"
:debounce="1000"
:min-length="2"
display-attribute="name"
value-attribute="id"
:list="getCity"
:filter-by-query="false"
@select="citySelect"
>
<input
type="search"
class="form-control"
:placeholder="$t('friend_city_of_birth_placeholder')"
value=""
autocomplete="false"
>
</vue-simple-suggest>
<b-form-input
v-if="city.isCityLoading"
:disabled="true"
:placeholder="$t('cityLoading')"
type="text"
class="form-control"
> </b-form-input>
</div>
....
data: () => ({
city: {searchInput: null, value: null, isCityLoading: false},
}),
methods: {
// make api call to get suggestions
getCity() {
this.user.city.isCityLoading = true
return asyncPostData( '/api/cities/search', {'cityPattern' : this.user.city.searchInput})
.then(function(data) {
return data;
}.bind(this))
.finally(function () {
this.user.city.isCityLoading = false;
}.bind(this));
},
// trigger on selecting some value from suggestions list
citySelect(value) {
this.user.city.value = value;
},
}
Here also an image of how the input looks like on Chrome with that blue x sign https://gyazo.com/9d011021aab8d55e8ac33dbbbb478543
I'm submitting a ...
What is the current behavior?
When I click on input in chrome and type something, chrome showing me blue
xand because of that, it's not showing a dropdown with possible values after response returned from the backend. On other browsers where I test it (firefox, safari) all works as expectedWhat is the expected behavior?
When I type something to the input, the app sending a request to the server and after getting a response should show me a dropdown with possible suggestions
How are you importing Vue-simple-suggest?
import VueSimpleSuggest from 'vue-simple-suggest/lib')import VueSimpleSuggest from 'vue-simple-suggest')import VueSimpleSuggest from 'vue-simple-suggest/dist/es7')import VueSimpleSuggest from 'vue-simple-suggest')const VueSimpleSuggest = require('vue-simple-suggest'))<script type="text/javascript" src="https://unpkg.com/vue-simple-suggest"></script>)Please tell us about your environment:
** Sample code **
Here also an image of how the input looks like on Chrome with that blue
xsign https://gyazo.com/9d011021aab8d55e8ac33dbbbb478543