diff --git a/core/src/components/checkbox/checkbox.tsx b/core/src/components/checkbox/checkbox.tsx index 68391778a5..0e7e3c3c6a 100644 --- a/core/src/components/checkbox/checkbox.tsx +++ b/core/src/components/checkbox/checkbox.tsx @@ -247,6 +247,21 @@ export class Checkbox implements ComponentInterface { })} > + {/* + The native control must be rendered + before the visible label text due to https://bugs.webkit.org/show_bug.cgi?id=251951 + */} + this.onFocus()} + onBlur={() => this.onBlur()} + ref={(focusEl) => (this.focusEl = focusEl)} + {...inheritedAttributes} + /> - this.onFocus()} - onBlur={() => this.onBlur()} - ref={(focusEl) => (this.focusEl = focusEl)} - {...inheritedAttributes} - /> ); diff --git a/core/src/components/radio/radio.tsx b/core/src/components/radio/radio.tsx index ca553de434..a8c1878ee5 100644 --- a/core/src/components/radio/radio.tsx +++ b/core/src/components/radio/radio.tsx @@ -234,6 +234,18 @@ export class Radio implements ComponentInterface { })} > + {/* + The native control must be rendered + before the visible label text due to https://bugs.webkit.org/show_bug.cgi?id=251951 + */} + (this.nativeInput = nativeEl as HTMLInputElement)} + {...inheritedAttributes} + /> {this.renderRadioControl()} - (this.nativeInput = nativeEl as HTMLInputElement)} - {...inheritedAttributes} - /> );