mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
fix(radio-group): wrap slot in a div to resolve blurring on focus
This commit is contained in:
@@ -293,7 +293,14 @@ export class RadioGroup implements ComponentInterface {
|
||||
class={mode}
|
||||
>
|
||||
{this.renderHintText()}
|
||||
<slot></slot>
|
||||
{/*
|
||||
Wrapping the slot in a div is a workaround due to a Stencil issue.
|
||||
Without the wrapper, the children radio will fire the blur event
|
||||
on focus, instead of waiting for them to be blurred.
|
||||
*/}
|
||||
<div>
|
||||
<slot></slot>
|
||||
</div>
|
||||
</Host>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user