pull/800/head
Cagatay Civici 2020-12-10 15:34:41 +03:00
parent 767cc4670c
commit 0857d5e7e4
1 changed files with 3 additions and 2 deletions

View File

@ -35,8 +35,9 @@ const BadgeDirective = {
let badge = document.getElementById(el.$_pbadgeId);
if (options.value) {
if (DomHandler.hasClass(badge, 'p-badge-dot'))
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');