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

DatePicker: selectionMode=range and numberOfMonths=2 #4438

Closed
majulvez opened this Issue Jan 16, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@majulvez
Copy link

majulvez commented Jan 16, 2019

1) Environment

  • PrimeFaces version: 6.2.14
  • Does it work on the newest released PrimeFaces version? Version? No
  • Does it work on the newest sources in GitHub? No
  • Application server + version: Apache tomcat 7.0.62
  • Affected browsers: Chrome/Firefox

2) Expected behavior

DatePicker shows two months and you select first date in the first month and the other date in the next month, and range is drawn well

3) Actual behavior

DatePicker shows two months and after you select the first date in the first month you can't select the next date in the next month. It has a weird behavior

4) Steps to reproduce

Just open the xhtml in the browser and try to select two dates in different months

5) Sample XHTML

<h:form> <p:datePicker numberOfMonths="2" selectionMode="range" value="#{calendarView.dates}" /> </h:form>

6) Sample bean

`
@ManagedBean(name = "calendarView")
public class CalendarView implements Serializable {

private List dates;

public List getDates() {
return dates;
}

public void setDates(List dates) {
this.dates = dates;
}
}
`

@mertsincan mertsincan self-assigned this Jan 16, 2019

@mertsincan mertsincan added this to the 7.0 milestone Jan 16, 2019

@majulvez

This comment has been minimized.

Copy link
Author

majulvez commented Jan 16, 2019

Verified. Issue fixed.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment