Primeng: p-button disabled attribute doesn't behave as expected on all browsers.

Created on 29 Mar 2018  路  3Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[x] bug report

Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.

https://stackblitz.com/edit/angular-zsuen9

Current behavior
When you use a p-button component and give it the attribute [disabled]=true, the button still works in Google Chrome, but in Firefox it is really disabled

Expected behavior
The button does nothing on all browsers when it has the disabled attribute.

Minimal reproduction of the problem with instructions
I posted a Stackblitz link where you can experience the same issue.

  • Browser: [Chrome 65.0.3325.181 ]

  • Language: [TypeScript 2.3]

Most helpful comment

If you use p-button component then right attribute is onClick (instead of click). See the documentation of the button component (chapter Properties of p-button) https://www.primefaces.org/primeng/#/button

All 3 comments

If you use p-button component then right attribute is onClick (instead of click). See the documentation of the button component (chapter Properties of p-button) https://www.primefaces.org/primeng/#/button

Aw ! I missed it ! Sorry for posting this as a bug !
Thank you very much @jupin-r :)

@cagataycivici Could you close it?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pchristou picture pchristou  路  3Comments

gatapia picture gatapia  路  3Comments

lilling picture lilling  路  3Comments

SchneMa picture SchneMa  路  3Comments

mitosandov picture mitosandov  路  3Comments