I'm submitting a ... (check one with "x")
[x ] bug report => Search github for a similar issue or PR before submitting
[ ] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35
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.
http://plnkr.co/edit/dWh4IJoFdiNDdQVMJwSE
http://plnkr.co/edit/3fSfruH9GUtpeAoDuLs0?p=preview
Current behavior
Expected behavior
I would expect the AM / PM text to toggle with the selection of the AM / PM buttons.
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please note that I am also posting a pull request to fix.
Please tell us about your environment:
Windows 10, Visual Studio Code, Chrome
Angular version: 4.1.0
It is also an issue in the current version in plunkr
PrimeNG version: 2.0.X
Browser: [Chrome 57.0.2987.133 (64-bit) ]
Language: [all | TypeScript X.X | ES6/7 | ES5]
Node (for AoT issues): node --version =
It was fixed here https://github.com/primefaces/primeng/issues/2693
Please comment out for any concerns.
My version of primeNG is 4.0.1, but this bug is still there...
<p-calendar inputStyleClass="form-control" formControlName="requested_time" showTime="showTime" hourFormat="12" timeOnly="true">
Toggle do not change AM to PM in input field
Most helpful comment
My version of primeNG is 4.0.1, but this bug is still there...
<p-calendar inputStyleClass="form-control" formControlName="requested_time" showTime="showTime" hourFormat="12" timeOnly="true">Toggle do not change AM to PM in input field