Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

p-tag: style not change dynamically #12665

Closed
stsness opened this issue Feb 22, 2023 · 2 comments
Closed

p-tag: style not change dynamically #12665

stsness opened this issue Feb 22, 2023 · 2 comments
Labels
LTS-PORTABLE Issue's fix will be ported to supported LTS versions Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@stsness
Copy link

stsness commented Feb 22, 2023

Describe the bug

Using p-tag style not change dynamically.

Environment

Angular 14
Primeng 14

Reproducer

https://stackblitz.com/edit/github-k27wqg?file=src/app/app.component.html

Angular version

14

PrimeNG version

14.0.2

Build / Runtime

Angular CLI App

Language

TypeScript

Node version (for AoT issues node --version)

18

Browser(s)

No response

Steps to reproduce the behavior

  1. Select an option
  2. Show correct color p-tag
  3. Change option
  4. P-tag Not change to new color

Expected behavior

Update new color after change.

@stsness stsness added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 22, 2023
volvachev added a commit to volvachev/primeng that referenced this issue Feb 23, 2023
volvachev added a commit to volvachev/primeng that referenced this issue May 23, 2023
volvachev added a commit to volvachev/primeng that referenced this issue Jun 12, 2023
@ericvaroto
Copy link

ericvaroto commented Oct 11, 2023

Hello everyone,
Any update about this issue?

I'm facing the same problem in version 16.0.1: the TAG component do not refresh the "style" attribute to get the new value "background-color" in property "roleColor"

Angular version
16

PrimeNG version
16.0.1

Code
<p-tag [style]="{ 'background-color': '#' + member.roleColor }">{{ member.roleName }}</p-tag>

@jvegaseg
Copy link

Same problem with PrimeNG 17.7.0.

¿Any workarround?

@cetincakiroglu cetincakiroglu added this to the 17.13.0 milestone Mar 22, 2024
@cetincakiroglu cetincakiroglu added Type: Bug Issue contains a bug related to a specific component. Something about the component is not working and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Mar 22, 2024
@cetincakiroglu cetincakiroglu added the LTS-PORTABLE Issue's fix will be ported to supported LTS versions label Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LTS-PORTABLE Issue's fix will be ported to supported LTS versions Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants