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

Calendar onMonthChange is not triggered when change monthNavigator #4708

Closed
raymond-kolorbox opened this issue Dec 21, 2017 · 0 comments
Closed
Assignees
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Milestone

Comments

@raymond-kolorbox
Copy link

raymond-kolorbox commented Dec 21, 2017

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)
http://plnkr.co/edit/NNI7d6vSzy7xsljo5zVr?p=preview

Current behavior
Calendar onMonthChange is not triggered when change in yearNavigator or monthNavigator

Expected behavior
onMonthChange should be triggered when change in yearNavigator or monthNavigator

Minimal reproduction of the problem with instructions
<p-calendar [(ngModel)]="selected_date" [inline]="true" [monthNavigator]="true" [yearNavigator]="true" yearRange="2015:2050" dateFormat="yy-mm-dd" (onMonthChange)="changeMonth($event)">
Set onMonthChange Handler to p-calendar, change month in monthNavigator or year in yearNavigator do not trigger the onMonthChange Handler.

What is the motivation / use case for changing the behavior?
Update in monthNavigator and yearNavigator to get events in new month.

Please tell us about your environment:
MacOS Sierra, Visual Studio Code, npm, yarn, nginx

  • Angular version: 2.0.X
    5.0.1

  • PrimeNG version: 2.0.X
    5.0.2

  • Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]
    all

  • Language: [all | TypeScript X.X | ES6/7 | ES5]
    all

  • Node (for AoT issues): node --version =
    6.10.3

@raymond-kolorbox raymond-kolorbox changed the title onMonthChange is not triggered when change in yearNavigator or monthNavigator Calendar onMonthChange is not triggered when change in yearNavigator or monthNavigator Dec 21, 2017
@cagataycivici cagataycivici self-assigned this Mar 6, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a bug related to a specific component. Something about the component is not working label Mar 6, 2018
@cagataycivici cagataycivici added this to the 5.2.1 milestone Mar 6, 2018
@cagataycivici cagataycivici changed the title Calendar onMonthChange is not triggered when change in yearNavigator or monthNavigator Calendar onMonthChange is not triggered when change monthNavigator Mar 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a bug related to a specific component. Something about the component is not working
Projects
None yet
Development

No branches or pull requests

2 participants