Skip to content

Commit

Permalink
Merge pull request #180 from CSCfi/c-select-fix
Browse files Browse the repository at this point in the history
Prevent errors in the log on component load
  • Loading branch information
villeerikssoncsc authored Oct 29, 2024
2 parents 44b014d + 59b84bb commit a9f8f96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/csc-ui/src/components/c-select/c-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,11 @@ export class CSelect {
this._selectionElement.replaceChildren(clone);
}

this._dropdownElement.updateList();
this._dropdownElement?.updateList();

this._preventDialogOpen = true;

this._inputElement.focus();
this._inputElement?.focus();
}

private _setValue({ value, name }: { value: string; name: string }) {
Expand Down

0 comments on commit a9f8f96

Please sign in to comment.