Commit 16d309b
docs(260602-dv1): element-dependent config pattern + shadow-DOM selector warning
features.md gains an "Element-dependent config: the $onMount + r-if pattern"
subsection under $refs — the ROZ123 wrong-way vs right-way example, plus the
prefer-elements-over-selectors guidance for third-party libraries.
flatpickr.md's rangePlugin recipe gains a warning callout: selector-string
input resolves via document.querySelector, which cannot see inside shadow DOM
and fails silently — pass the element constructed after mount instead.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 382b42f commit 16d309b
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
550 | 550 | | |
551 | 551 | | |
552 | 552 | | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
553 | 581 | | |
554 | 582 | | |
555 | 583 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
353 | 357 | | |
354 | 358 | | |
355 | 359 | | |
| |||
0 commit comments