We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 172d82f commit 2fe6386Copy full SHA for 2fe6386
src/directives/text.ts
@@ -1,9 +1,9 @@
1
import { isObject } from '@vue/shared'
2
import { Directive } from '.'
3
4
-export const text: Directive<Text> = ({ el, get, effect }) => {
+export const text: Directive<Text | Element> = ({ el, get, effect }) => {
5
effect(() => {
6
- el.data = toDisplayString(get())
+ el.textContent = toDisplayString(get())
7
})
8
}
9
0 commit comments