Skip to content

Commit

Permalink
fix(c-select): Prevent errors in the log on component load
Browse files Browse the repository at this point in the history
  • Loading branch information
razorfever committed Oct 29, 2024
1 parent 44b014d commit 59b84bb
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 59b84bb

Please sign in to comment.