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

MaterialDatePicker setLanguage exception #705

Closed
HoochSDS opened this issue Oct 15, 2017 · 3 comments
Closed

MaterialDatePicker setLanguage exception #705

HoochSDS opened this issue Oct 15, 2017 · 3 comments
Labels
Milestone

Comments

@HoochSDS
Copy link

Hi,

  1. the DatePicker throws an exception if you change the language.
 bDayDate.setLanguage(DatePickerLanguage.DE);

Exception:

  >Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'stop' of undefined
    TypeError: Cannot read property 'stop' of undefined
    at u2f_g$.M3f_g$ [as setLanguage_0_g$] (App-0.js:85101:26)
    at new s0i_g$ (App-0.js:128663:21)
    ...
    ...
    ...
  1. What is the name of the new function for the old.
bDayDate.reinitialize();

using Snapshot gwt-material-2.0-20171015.002523-448.jar

Thanks

@kevzlou7979
Copy link
Contributor

You can call

bDayDate.reload();

@kevzlou7979 kevzlou7979 added this to the 2.0 milestone Oct 17, 2017
@simerlec
Copy link

Hey,
I have the same issue as mentioned in @HoochSDS's first point. Setting the language causes an exception.

TypeError: Cannot read property 'stop' of undefined
    at vsh_g$.Nth_g$ [as setLanguage_2_g$] (MaterialDatePicker.java:446)
    ...

kr

@kevzlou7979
Copy link
Contributor

Fixed via 73db9d8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants