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 shows wrong month #8173
Comments
fix(calendar): show right month when value is set for 9.1.x #8173
fix(calendar): show right month when value is set for 10.2.x #8173
fix(calendar): show right month when value is set for master #8173
The calendar has both the At the same time, By making this change we are making the IMO this change should be reverted. @wnvko let me know what you think. |
In the sample linked in this issue, there is no viewDate set only a value. If the viewDate is set its value is taken. This bug fix is related to the scenario when there is no viewDate set, only a value. |
The API docs say that |
I do not know what is correct. IMO if:
|
@StefanIvanov could you please share the UX view point? Basically we have a dedicated Current behavior, after this change, makes If we are not sure about it, and to stay compliant with what the API say, I suggest reverting the current change. At least the API is clear on that. |
From a pure UX/UI point of view, the bug fix makes sense because it enables a scenario where the calendar header is used to show the current selection. Talking about the calendar we may have it embedded in a page or show from any element e.g. a button and that would not mean that the end-user will have a clear indication elsewhere about the selected values. For the case where we have a range selection, I think the header should display a value e.g. Mon, Jan 1 - Mon, Jan 5 which is of course as long as a |
I understand that, but for me it seems like we are presuming like selection is the main purpose of the calendar, which dictates the behavior. If this is true, then fine. But then maybe Let's extend on this example: a button brings up the calendar, and the user would like to see if there are any selected dates in the current month. What is more important for the user - to see if there are any selected dates, or if the current month has any selected date. I guess it depends on the business case. In the end, we have a property controlling this behavior and we are changing its value behind the curtains. |
@hanastasov in your example I think with the introduced behavior the user can see both by checking the header for the selection and by navigating to the current month via the calendar UI and seeing what is marked on the days view. |
And with the previous behavior user was able to see both in one screen (header indicates the selected value), without additional interaction with the UI. Sounds better to me. Anyway I agree that when single selection, it is good to have the calendar opened in the selected month. I will open a new issue regarding the API docs change. |
#8173 the issue for correcting the API docs. |
@hanastasov thanks for taking care of this! |
Description
When
value
is set inIgxCalendar
template, calendar does not show the correct month and year.Steps to reproduce
Result
Calendar shows current day month and year.
Expected result
Calendar should scroll to the date representing the value, e.g. in the attached sample it should show January 1958.
The text was updated successfully, but these errors were encountered: