Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FormGroup classes applied to wrong element #530

Open
jer-0 opened this issue Jan 30, 2023 · 0 comments
Open

FormGroup classes applied to wrong element #530

jer-0 opened this issue Jan 30, 2023 · 0 comments

Comments

@jer-0
Copy link

jer-0 commented Jan 30, 2023

classes in FormGroup component is being applied to wrong element causing it to have no effect.

code:

<FormGroup inline={true} check={true}>
	<Input
		id="r1"
		type="radio"
		bind:group={mode}
		value="create"
		label="Create"
	/>
	<Input
		id="r2"
		type="radio"
		bind:group={mode}
		value="update"
		label="Update"
	/>
</FormGroup>

dom:
Screenshot 2023-01-30 152322

as you can see, .form-check-inline class should be on child .form-check div

bootstrap docs ref: https://getbootstrap.com/docs/5.3/forms/checks-radios/#inline

workaround:

<FormCheck inline={true} type={'radio'} name={"mode"} label={'Create'} value={'create'} />
<FormCheck inline={true} type={'radio'} name={"mode"} label={'Update'} value={'update'} />

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant