badge directive hydration fix

pull/3441/head
Tuğçe Küçükoğlu 2022-12-21 16:11:13 +03:00
parent ef57cba0f5
commit 338d6609c5
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
import { DomHandler, UniqueComponentId } from 'primevue/utils'; import { DomHandler, UniqueComponentId } from 'primevue/utils';
const BadgeDirective = { const BadgeDirective = {
beforeMount(el, options) { mounted(el, options) {
const id = UniqueComponentId() + '_badge'; const id = UniqueComponentId() + '_badge';
el.$_pbadgeId = id; el.$_pbadgeId = id;