Skip to content

Commit

Permalink
fix(badge): correctly set display none if disabled is true (#17560)
Browse files Browse the repository at this point in the history
  • Loading branch information
DaSchTour authored Feb 14, 2025
1 parent 0ed724f commit 8af7093
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/primeng/src/badge/badge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export class BadgeDirective extends BaseComponent implements OnChanges, AfterVie
providers: [BadgeStyle],
host: {
'[class]': 'containerClass()',
'[style.display]': 'badgeDisabled() && "none"',
'[style.display]': 'badgeDisabled() ? "none" : null',
'[style]': 'style()'
}
})
Expand Down

0 comments on commit 8af7093

Please sign in to comment.