Open bogdan-dubyk opened 3 years ago
Fixed by wrapping vss
in a form and adding autocomplete="off"
to the form element
I tried with a autocomplete="off"
and did not work. I'm not sure what is a vss
, sorry:( can u.show me or link to the place I can read about it?
<form autocomplete="off">
<vue-simple-suggest />
</form>
Oh lol, vss is vue-simple-suggest :)
Did it work for you too? Can close this issue if so
Sorry, I did not try it yet, let u know a bit later
no, it's not working for me, I tried to wrap all fields with a <form autocomplete="off"></form>
and directly vss
as you propose and it's not working :( , And actually as I told I think I already tried that before
Do you need this nested <input>
element? Try give that autocomplete="false"
as well as the form, and try remove it to see if that fixes it. I don't have a nested input element and wrapping vss
in a form worked for me
k, I'll try it tomorrow, it's late for me, thanks! And the reason I have that nested element is b-z I need to set a custom class and placeholders, can I do It without nesting that input???
Try a simple version first, then add another layer of complexity and see where it breaks
well, now I'm not sure if it's related to autocomplete, when I remove nested input that cross sign gone, but still the dropdown not appearing. I make small videos to show how it works on Chrome and on Firefox (same on safari) , as u can see it working on Firefox.. not sure if it can be helpful.
Not code looks like this:
<form autocomplete="off">
<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"
>
</vue-simple-suggest>
</form
Hello @bogdan-dubyk
Can you provide us a link to reproduction repo/jsfiddle/jsbin stand? Would be much easier to do some debugging. We are using VSS in our production projects and got no such issue.
Sure @kaskar2008 , I'll prepare some sample code
Here is the code sandbox example I made, where I can reproduce the bug https://codesandbox.io/s/stupefied-flower-q3xz4?file=/src/App.vue (HTML is broken as I remove most of the logic)
Is someone able to reproduce the issue and have any thought on how to fix it???
Can you simplify the code example? No need for it to be 650 lines
sure, here it is https://codesandbox.io/s/vigorous-cartwright-fiyb3
any updates? :)
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 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
x
sign https://gyazo.com/9d011021aab8d55e8ac33dbbbb478543