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

Prevent undefined from and to timepicker dates. #20355

Merged
merged 1 commit into from
Jun 29, 2018

Conversation

cjcenizal
Copy link
Contributor

Currently, if you delete the "to" or "from" dates in the timepicker, you get errors:

image

This PR prevents this from happening.

@cjcenizal cjcenizal added bug Fixes for quality problems that affect the customer experience :Discovery v7.0.0 v6.4.0 labels Jun 29, 2018
@cjcenizal cjcenizal requested a review from nreese June 29, 2018 19:00
@nreese
Copy link
Contributor

nreese commented Jun 29, 2018

How are you deleting the values and pressing go? The go button should be disabled since the dates are not valid

screen shot 2018-06-29 at 1 07 59 pm

@cjcenizal
Copy link
Contributor Author

cjcenizal commented Jun 29, 2018

@nreese I'm not pressing go, I'm just deleting the value like you have it. Even without pressing go, it seems to update the $scope.absolute.from and $scope.absolute.to variables but I think that's expected behavior for this directive?

@cjcenizal
Copy link
Contributor Author

cjcenizal commented Jun 29, 2018

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm
code review

@elasticmachine
Copy link
Contributor

💔 Build Failed

@cjcenizal
Copy link
Contributor Author

retest

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@cjcenizal cjcenizal merged commit 9d12f84 into elastic:master Jun 29, 2018
@cjcenizal cjcenizal deleted the timepicker-undefined-year branch June 29, 2018 21:03
cjcenizal added a commit to cjcenizal/kibana that referenced this pull request Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience v6.4.0 v7.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants