Relative Content

Tag Archive for typescriptbuttonprimengangular18

Disable property doesn’t work in button component – primeng, angular18, typescript

I have created a component to manage the buttons that I use in my website (styles, type, status…), the buttons are from primeng. The problem I have is that when I use them in any component it works fine except the “disabled” property, it applies an opacity but it allows me to click it. When I test directly the p-button of primeng the “disabled” function works correctly, I don’t understand what is wrong in my code, use Angular 18 and typescript.

Property disable no function in button component – primeng, angular18, typescript

I have created a component to manage the buttons that I use in my website (styles, type, status…), the buttons are from primeng. The problem I have is that when I use them in any component it works fine except the “disabled” property, it applies an opacity but it allows me to click it. When I test directly the p-button of primeng the “disabled” function works correctly, I don’t understand what is wrong in my code, use Angular 18 and typescript.