DateField Changes to the Current Year When Clicked (Resolution: YEAR)

Hi,

Good afternoon!

I faced a somewhat similar problem with the thread https://vaadin.com/forum#!/thread/10009177/10035537 where the PopupDateField changes the initialized value. I created a Date Range Selector class which incorporates two PopupDateField class. One for start year and the other is for the end year. The differences from the mentioned thread are: first, I am using a YEAR Resolution. Secondly, the change is happening when the user clicked the TextField portion of the PopupDateField if it is set to a past year. I discovered that the changeVariables() function is being invoked which cause the PopupDateField to be reset to the current year but I cannot understand how and why it is invoked.

Your advice will be greatly appreciated.

Thank you in advance!

Best regards,
Adrian