Improved Language Editor search bar styling and made it case insensitive
This commit is contained in:
parent
e2982b6c3d
commit
a70bb595ca
|
@ -39,4 +39,7 @@
|
||||||
border: 0px solid rgb(218, 218, 218);
|
border: 0px solid rgb(218, 218, 218);
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
}
|
}
|
||||||
|
.search-text::placeholder {
|
||||||
|
color: rgb(197, 194, 194);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ findKeys(ev: any) {
|
||||||
if (ev.value === "") {
|
if (ev.value === "") {
|
||||||
tempKeys = this.allkeys;
|
tempKeys = this.allkeys;
|
||||||
} else {
|
} else {
|
||||||
tempKeys = this.allkeys.filter((key) => (this.formGroup.get(key).value as string).includes(ev.value));
|
tempKeys = this.allkeys.filter((key) => (this.formGroup.get(key).value as string).toLowerCase().includes(ev.value.toLowerCase()));
|
||||||
window.scrollTo({top: 0});
|
window.scrollTo({top: 0});
|
||||||
}
|
}
|
||||||
this.keys.length = 0;
|
this.keys.length = 0;
|
||||||
|
|
Loading…
Reference in New Issue