Skip to content

Commit 45dcd80

Browse files
committed
fix: 🐛 corrige aussi l’accordĂ©on (cf. #999)
closes #999
1 parent ab647ce commit 45dcd80

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/components/DsfrAccordion/DsfrAccordion.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ onMounted(() => {
4141
4242
watch(isActive, (newValue, oldValue) => {
4343
/*
44-
* @see https://github.com/GouvernementFR/dsfr/blob/main/src/core/script/collapse/collapse.js
44+
* @see https://github.com/GouvernementFR/dsfr/blob/main/src/dsfr/core/script/collapse/collapse.js
4545
*/
4646
if (newValue !== oldValue) {
4747
doExpand(newValue)

‎src/composables/useCollapsable.ts‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ export const useCollapsable = () => {
3232
}
3333
if (newValue === true) {
3434
// unbound
35-
// @see https://github.com/GouvernementFR/dsfr/blob/main/src/core/script/collapse/collapse.js#L33
35+
// @see https://github.com/GouvernementFR/dsfr/blob/main/src/dsfr/core/script/collapse/collapse.js
3636
collapse.value.style.setProperty('--collapse-max-height', 'none')
3737
}
3838
// We need to wait for the next RAF to be sure the CSS variable will be set
39-
// DSFR use RAF too https://github.com/GouvernementFR/dsfr/blob/main/src/core/script/api/modules/render/renderer.js#L22
39+
// DSFR use RAF too https://github.com/GouvernementFR/dsfr/blob/main/src/dsfr/core/script/api/modules/render/renderer.js#L22
4040
window.requestAnimationFrame(() => {
4141
collapsing.value = true
4242
adjust()
@@ -53,7 +53,7 @@ export const useCollapsable = () => {
5353
* @param {boolean} focusFirstAnchor
5454
* @return void
5555
*/
56-
const onTransitionEnd = (expanded: boolean, autoFocus: boolean = true): void => {
56+
const onTransitionEnd = (expanded: boolean, autoFocus = true): void => {
5757
collapsing.value = false
5858
if (autoFocus) {
5959
collapse.value?.querySelector('a')?.focus()

0 commit comments

Comments
 (0)