Specift the input cleared style condition

This commit is contained in:
benguozakinci@gmail.com 2021-08-27 15:54:08 +03:00
parent bfcfad2694
commit ae16753da9

View File

@ -299,10 +299,9 @@ export default {
},
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
if (!this.search) {
this.isItemMatched = false; //to remove the style from matched item on input is cleared (option)
return;
}