-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
fix(tile-group): add name
and required
props
#1818
Conversation
src/Tile/RadioTile.svelte
Outdated
@@ -23,10 +26,16 @@ | |||
/** Specify a name attribute for the input */ | |||
export let name = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also switch the name
default to undefined
so the attribute is not added without value.
groupName: readonly(groupName), | ||
groupRequired: readonly(groupRequired), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stores do not appear to be defined yet; should be writable and updated reactively from props at the end of the <script>
along the lines of:
$: $groupName = name;
$: $groupRequired = required;
src/Tile/RadioTile.svelte
Outdated
@@ -23,10 +26,16 @@ | |||
/** Specify a name attribute for the input */ | |||
export let name = ""; | |||
|
|||
import { getContext } from "svelte"; | |||
import { getContext, readable } from "svelte"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's from 'svelte/store'
fc515c5
to
485ae17
Compare
485ae17
to
5676a70
Compare
Released in v0.81.0 |
Similar to #1037, fixes
TileGroup
to forwardname
/required
props to its group of inputs.