Skip to content

Commit

Permalink
Fixed failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandraRamanenka committed Feb 6, 2024
1 parent bdcba90 commit 5b49861
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/components/select/Select.js
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,7 @@ export default class SelectComponent extends ListComponent {

/* eslint-disable max-statements */
setItems(items, fromSearch) {
this.selectItems = items;
// If the items is a string, then parse as JSON.
if (typeof items == 'string') {
try {
Expand Down Expand Up @@ -957,6 +958,10 @@ export default class SelectComponent extends ListComponent {
this.addFocusBlurEvents(input);
this.triggerUpdate(null, true);

if (this.visible) {
this.setItems(this.selectItems || []);
}

this.focusableElement = input;

if (this.component.dataSrc === 'custom') {
Expand Down

0 comments on commit 5b49861

Please sign in to comment.