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

View File

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