Commit 9bdccb9
committed
fix: Ensure FAQ heading synchronization reacts to inner block changes
Updates the `useSyncQuestionHeadingLevels` hook to explicitly select the inner
FAQ question blocks using `useSelect`. By including these blocks in the
`useEffect` dependencies, heading levels are now correctly re-synchronized
when questions are added, removed, or reordered within the FAQ block.1 parent d4eab60 commit 9bdccb9
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
76 | 85 | | |
77 | 86 | | |
78 | 87 | | |
| |||
88 | 97 | | |
89 | 98 | | |
90 | 99 | | |
| 100 | + | |
91 | 101 | | |
92 | 102 | | |
93 | 103 | | |
| |||
0 commit comments