You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/2.components/accordion.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,7 +27,7 @@ See the [GOV.UK Design System documentation on accordions](https://design-system
27
27
28
28
## Controlling which sections are open
29
29
30
-
By default, all sections will be closed. You can bind a boolean value with `v-model` to set and keep track of the
30
+
By default, all sections will be closed. You can bind a boolean value with `v-model:expanded` to set and keep track of the
31
31
open state of the accordion section.
32
32
33
33
You can also set `:remember-expanded="true"` on the accordion to let the browser remember which sections a user has open.
@@ -37,8 +37,8 @@ service is hosted on.
37
37
38
38
:gv-warning-text{text="This behaviour is different to the GOV.UK Frontend Nunjucks macros, where rememberExpanded defaults to true. This is because in GOV.UK Vue, id is optional and the expanded state can't be stored reliably if an ID is not provided."}
39
39
40
-
If a section has `v-model` set to `true` or `false` and `remember-expanded` is `true`, the value of `v-model` takes precedence. For example,
41
-
if the stored state of a section is open but `v-model` is `false`, the section will be closed by default.
40
+
If a section has `v-model:expanded` set to `true` or `false` and `remember-expanded` is `true`, the value of `v-model:expanded` takes precedence. For example,
41
+
if the stored state of a section is open but `v-model:expanded` is `false`, the section will be closed by default.
0 commit comments