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

getValidValue error #210

Open
goodale opened this issue Feb 9, 2016 · 3 comments
Open

getValidValue error #210

goodale opened this issue Feb 9, 2016 · 3 comments

Comments

@goodale
Copy link

goodale commented Feb 9, 2016

I am getting a 'getValidValue is undefined' error with the latest 0.0.9 build. This error does not occur in the 0.0.8 build.

@goodale
Copy link
Author

goodale commented Feb 9, 2016

Note: this occurs when giving the focus

@vfuse
Copy link

vfuse commented Mar 5, 2016

For me this was fixed by setting the string format when setting value on momentjs moment/moment#1407

@holtkamp
Copy link
Collaborator

holtkamp commented Mar 7, 2016

Also encountered this issue, context::

  • singleDate: true
  • autoClose: true
  • clicking input element, the DateRangePicker appears
  • select a date, the input field is populated and DateRangePicker closes
  • click input element again
  • ReferenceError: getValidValue is not defined: setSingleDate(getValidValue(defaults[0], ___format, moment.locale(opt.language))...

This seems to be caused by b1ca6c2

When moving the getValidValue() function outside the checkAndSetDefaultValue(), this error does not occur. Will provide a PR for this.

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

No branches or pull requests

3 participants