pull/800/head
Yiğit FINDIKLI 2020-12-10 13:57:52 +03:00
parent f97f4bc9fc
commit 6f8f244e23
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ const BadgeDirective = {
if (options.oldValue !== options.value) {
let badge = document.getElementById(el.$_pbadgeId);
if (options.value && DomHandler.hasClass('p-badge-dot')) {
if (options.value && DomHandler.hasClass(badge, 'p-badge-dot')) {
DomHandler.removeClass(badge, 'p-badge-dot');
if (String(options.value).length === 1)
@ -42,7 +42,7 @@ const BadgeDirective = {
else
DomHandler.removeClass(badge, 'p-badge-no-gutter');
}
else if (!options.value && !DomHandler.hasClass('p-badge-dot')) {
else if (!options.value && !DomHandler.hasClass(badge, 'p-badge-dot')) {
DomHandler.addClass(badge, 'p-badge-dot');
}