Skip to content

Commit

Permalink
G select enhanced search (#447)
Browse files Browse the repository at this point in the history
* enhanced search added for g-select search

* version change

* removed logger

* version change

* g-select enhanced refactor

* sort fix

* version change

---------

Co-authored-by: Doğucan Durmuşlar <[email protected]>
  • Loading branch information
koulgar and Doğucan Durmuşlar authored Feb 23, 2023
1 parent 0a078aa commit f9c79f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@trendyol-js/grace",
"version": "1.0.55",
"version": "1.0.56",
"description": "Design System written with Vue.js",
"license": "MIT",
"repository": {
Expand Down
4 changes: 2 additions & 2 deletions src/components/GSelect/GSelect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,8 @@ export default {
return splittedText.some((str) => regex.test(str.toLowerCase()));
});
filteredOptions.sort((a, b) => {
aText = this.getItemText(a);
bText = this.getItemText(b);
const aText = this.getItemText(a);
const bText = this.getItemText(b);
const bgnA = aText.substr(0, this.searchText.length).toLowerCase();
const bgnB = bText.substr(0, this.searchText.length).toLowerCase();
Expand Down

0 comments on commit f9c79f4

Please sign in to comment.