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 0c9a41f commit 7fb8efcCopy full SHA for 7fb8efc
packages/core/src/components/Text.ts
@@ -4,7 +4,9 @@ import {
4
h,
5
inject,
6
defineComponent,
7
+ onMounted,
8
onUpdated,
9
+ onUnmounted,
10
} from '@vue/runtime-core'
11
import type { LiteralUnion } from '../utils'
12
import type { Styles } from '../renderer/styles'
@@ -46,9 +48,12 @@ export const TuiText = defineComponent({
46
48
47
49
setup(props, { slots }) {
50
const scheduleUpdate = inject(scheduleUpdateSymbol)!
- onUpdated(() => {
- scheduleUpdate()
51
- })
+
52
+ onMounted(scheduleUpdate)
53
54
+ onUpdated(scheduleUpdate)
55
56
+ onUnmounted(scheduleUpdate)
57
58
function transform(text: string): string {
59
if (props.dimmed) {
0 commit comments