question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MaterialDatePicker setDateMax()

See original GitHub issue

Hey,

seems like there is another issue like #707 and #705 but this time with setDateMax and setDateMin.

I made sure that I’m using the current version by cleaning out the repo.

Calling the methods results in…

Exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : Cannot read property 'set' of undefined
ConsoleLogger.java:32 TypeError: Cannot read property 'set' of undefined
    at vsh_g$.Bth_g$ [as setDateMax_0_g$] (MaterialDatePicker.java:253)
    ...

thx and kr

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kevzlou7979commented, Oct 23, 2017

Why do you need to wrap an scheduler to set the datepicker dateMin / dateMax values , this seems causing the issue. Also we learned also from our projects, that scheduler / timer will need to be setup correctly (Almost only on events - to listen whether they finished firing. But for this case setting a property to a scheduler is not a good idea.

0reactions
simerleccommented, Oct 23, 2017

Yes, if I do the setup outside of the scheduler everything seems to work fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

gwt.material.design.client.ui.MaterialDatePicker.setDateMin java ...
Enables or disables auto closing when selecting a date. setDate. Sets the current date of the picker. setDateMax. Set the maximum date limit....
Read more >
MaterialDatePicker (Gwt Material 2.0.1 API)
Material Date Picker will provide a visual calendar to your apps. ... MaterialDatePicker() ... public void setDateMax(Date dateMax).
Read more >
MaterialDatePicker Exception on modal Dialog dateField.clear()
Hi, if you clear() a DatePicker-Field on a modal Dialog-Window (MaterialWindow) like this: View: @Override public void openMDialog() ...
Read more >
MaterialDatePicker - Android Developers
S, getSelection(). Returns an S instance representing the selection or null if the user has not confirmed a selection.
Read more >
gwt.material.design.client.ui.MaterialDatePicker.java Source code
Date; //@formatter:off /** * Material Date Picker will provide a visual ... public Date getDateMax() { return dateMax; } public void setDateMax(Date ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found