Specift the input cleared style condition
This commit is contained in:
parent
bfcfad2694
commit
ae16753da9
@ -299,10 +299,9 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
onInput() {
|
onInput() {
|
||||||
this.isItemMatched = false; //to remove the style from first item on input change (option)
|
|
||||||
|
|
||||||
//to optimize performance we kept the condition that checks for if search exists or not
|
//to optimize performance we kept the condition that checks for if search exists or not
|
||||||
if (!this.search) {
|
if (!this.search) {
|
||||||
|
this.isItemMatched = false; //to remove the style from matched item on input is cleared (option)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user