Skip to content

Commit

Permalink
fix(select): selected item is not showing for ios/ipados (carbon-desi…
Browse files Browse the repository at this point in the history
…gn-system#11214)

### Related Ticket(s)

Closes carbon-design-system/carbon-for-ibm-dotcom#10052
[Jira ticket](https://jsw.ibm.com/browse/ADCMS-4083)

### Description

Fix for Labeles not appearing on Safari / IOS

### Changelog

**Changed**

 - How labels on the select component are handled

---
Opened to replace carbon-design-system/carbon-for-ibm-dotcom#11080
  • Loading branch information
marcelojcs authored Jan 19, 2024
1 parent 7e3319b commit 0655982
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import FormMixin from '../../globals/mixins/form';
import { filter } from '../../globals/internal/collection-helpers';
import { INPUT_SIZE } from '../text-input/text-input';
import styles from './select.scss';
import ifNonEmpty from '../../globals/directives/if-non-empty';
import { carbonElement as customElement } from '../../globals/decorators/carbon-element';

/**
Expand Down Expand Up @@ -113,7 +114,7 @@ class CDSSelect extends FormMixin(LitElement) {
<option
class="${prefix}--select-option"
?disabled="${disabled}"
label="${ifDefined(label ?? textContent)}"
label="${ifNonEmpty(label)}"
?selected="${selected}"
value="${ifDefined(value)}">
${textContent}
Expand Down

0 comments on commit 0655982

Please sign in to comment.