Closed Sendoo closed 4 years ago
@Sendoo assuming you have v-model="currentSuggestionValue'
then any reason you are not simply clearing it all the way? e.g.
- this.currentSuggestValue = ' '
+ this.currentSuggestValue = null
@Sendoo assuming you have
v-model="currentSuggestionValue'
then any reason you are not simply clearing it all the way? e.g.- this.currentSuggestValue = ' ' + this.currentSuggestValue = null
Since this is a text field, an error will be shown with null.
I deleted props get-suggestion-value
and the previous cleaning worked as it should!
vue-autosuggest
2.0.4:node
12.13.0:npm
(oryarn
) 6.13.0:What you did:
I want to create a method by which cleaning input (v-model)
selectSection(data) { if (data) { this.currentSuggestValue = ' '; } }
What happened:
This code cleared input, but not rendering placeholder (empty).
Problem description:
How to right clean input?