Skip to content

Enable Date in stepsArray and bindIndexForStepsArray: false #424

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

Closed
ValentinH opened this issue Oct 5, 2016 · 0 comments
Closed

Enable Date in stepsArray and bindIndexForStepsArray: false #424

ValentinH opened this issue Oct 5, 2016 · 0 comments

Comments

@ValentinH
Copy link
Member

Steps to reproduce

  1. create a stepsArray with Date objects
  2. without using the bindIndexForStepsArray option defaults to false)

Demo: http://jsfiddle.net/teLLg7e2/

Actual behaviour

It doesn't work because comparing dates with == or === is incorrect: http://stackoverflow.com/questions/492994/compare-two-dates-with-javascript . Thus, we should add a special test with angular.isDate() to handle this case.

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

No branches or pull requests

1 participant