mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 03:26:36 +00:00
fix(fluid-form): rest props should not override Form class
This commit is contained in:
parent
f8d39f1db7
commit
e4a0eb3767
1 changed files with 3 additions and 5 deletions
|
@ -1,12 +1,10 @@
|
|||
<script>
|
||||
import { setContext } from "svelte";
|
||||
import { Form } from "../Form";
|
||||
import Form from "../Form/Form.svelte";
|
||||
|
||||
setContext("Form", {
|
||||
isFluid: true,
|
||||
});
|
||||
setContext("Form", { isFluid: true });
|
||||
</script>
|
||||
|
||||
<Form class="bx--form--fluid" {...$$restProps}>
|
||||
<Form {...$$restProps} class="bx--form--fluid {$$restProps.class}">
|
||||
<slot />
|
||||
</Form>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue