Skip to content

Commit 91091c2

Browse files
committed
fix(select-option): use correct slot props
1 parent 8009bfe commit 91091c2

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/components/select-option/select-option.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { getIonTheme } from '../../global/ionic-global';
66
/**
77
* @virtualProp {"ios" | "md"} mode - The mode determines the platform behaviors of the component.
88
* @virtualProp {"ios" | "md" | "ionic"} theme - The theme determines the visual appearance of the component.
9+
*
10+
* @slot - Content is placed between the named slots if provided without a slot.
11+
* @slot start - Content is placed to the left of the item text in LTR, and to the right in RTL.
12+
* @slot end - Content is placed to the right of the item text in LTR, and to the left in RTL.
913
*/
1014
@Component({
1115
tag: 'ion-select-option',
@@ -42,11 +46,7 @@ export class SelectOption implements ComponentInterface {
4246
}}
4347
role="option"
4448
id={this.inputId}
45-
>
46-
<slot name="start"></slot>
47-
<slot></slot>
48-
<slot name="end"></slot>
49-
</Host>
49+
></Host>
5050
);
5151
}
5252
}

0 commit comments

Comments
 (0)