Commit d007e90
fix(vue): accept null template refs so useTemplateRef type-checks
Vue 3.5's useTemplateRef() returns Ref<HTMLElement | null>, which the
previous VueElement type rejected. Widen the ref value to include null
(the runtime already waits for a non-null element before initializing)
and reuse VueElement for the parent field. Convert the Vue Test1
component to useTemplateRef so the framework e2e suite exercises it.
Co-authored-by: jf908 <2487520+jf908@users.noreply.github.com>1 parent 46aa839 commit d007e90
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments