Skip to content

Commit

Permalink
fix(dropdown): visibility of warn-text and invalid-text (carbon-desig…
Browse files Browse the repository at this point in the history
…n-system#11573)

* Fixing display of invalid-text and warn-text

* chore(prettier): format code

---------

Co-authored-by: Kenny Lam <[email protected]>
  • Loading branch information
gyalogmixi and kennylam authored Feb 28, 2024
1 parent e4ed585 commit d287e33
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,8 @@ class CDSDropdown extends ValidityMixin(
(open ? toggleLabelOpen : toggleLabelClosed) || undefined;
const hasHelperText =
helperText ||
invalidText ||
warnText ||
(slotHelperTextNode && slotHelperTextNode.assignedNodes().length > 0);
const validityIcon = !invalid
? undefined
Expand Down

0 comments on commit d287e33

Please sign in to comment.