Commit 93ce2c1
Fix critical HTMX target error in flashcard creation (#4)
The flashcard modal was targeting #flashcards-list but topic pages use #topic-flashcards-list,
causing HTMX targetError when creating flashcards from topic pages.
This fix makes the HTMX target context-aware:
- Topic pages: target #topic-flashcards-list
- Unit pages: target #flashcards-list
Users can now create flashcards from topic pages without HTMX errors.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>1 parent 470b373 commit 93ce2c1
1 file changed
Lines changed: 10 additions & 6 deletions
Lines changed: 10 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
332 | 336 | | |
333 | 337 | | |
334 | 338 | | |
| |||
0 commit comments