mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): sync with main
This commit is contained in:
@ -215,6 +215,7 @@ export class Toggle implements ComponentInterface {
|
||||
const mode = getIonMode(this);
|
||||
const { label, labelId, labelText } = getAriaLabel(el, inputId);
|
||||
const value = this.getValue();
|
||||
const rtl = isRTL(el) ? 'rtl' : 'ltr';
|
||||
|
||||
renderHiddenInput(true, el, name, checked ? value : '', disabled);
|
||||
|
||||
@ -232,6 +233,7 @@ export class Toggle implements ComponentInterface {
|
||||
'toggle-checked': checked,
|
||||
'toggle-disabled': disabled,
|
||||
interactive: true,
|
||||
[`toggle-${rtl}`]: true,
|
||||
})}
|
||||
>
|
||||
<div class="toggle-icon" part="track">
|
||||
|
Reference in New Issue
Block a user