Skip to content

Commit

Permalink
Feature - ccs autocomplete dropdown display all items (#741)
Browse files Browse the repository at this point in the history
* scrollbar added
* show all items
* comment fixes
* use oxd-scrollbar mixing
* change log updated
* change log order changed
  • Loading branch information
udithaOHRM authored Nov 20, 2023
1 parent 77b612f commit 4d5856e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2023-11-17 - a1cbc0a5bc9386bc415452108100a005b4e196d0 - AutocompleteInput.vue - Removed limitation (5 result) of autocomplete result list

2023-11-17 - 0a400c7f9be38c5809a5ad75425f9b4d987618a4 - autocomplete-input.scss - oxd-autocomplete-dropdown set max height and scrollbar added

2023-02-22 - 38a57d11c250022d6116fbcb1f71e78125abe5b3 - List/List.vue - Added prop support for No data found message and icon

2023-01-26 - 3e627e7fbd8a8a40c929a1df6256893dbc17bcb8 - Input/Autocomplet/AutocompleteInput.vue - handled search term resetting issue in autcompleteinput when on keypress enter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,11 +276,7 @@ export default defineComponent({
}).then(resolved => {
this.loading = false;
if (resolved && Array.isArray(resolved)) {
if (resolved.length > 0) {
this.options = resolved.slice(0, 5);
} else {
this.options = [];
}
this.options = resolved;
} else {
throw new Error('options returned are not array');
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@
}

.oxd-autocomplete-dropdown {
max-height: 250px;
overflow-y: auto;
position: absolute;
width: inherit;
box-sizing: border-box;
Expand All @@ -111,6 +113,7 @@
box-shadow: $oxd-dropdown-dropdown-box-shadow;
border-radius: $oxd-dropdown-dropdown-border-radius;
background-color: $oxd-dropdown-dropdown-background;
@include oxd-scrollbar();
&.--positon-top {
bottom: 100%;
margin-bottom: $oxd-dropdown-dropdown-margin;
Expand Down

0 comments on commit 4d5856e

Please sign in to comment.