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

Angular js 1 - Input date not working properly for a set date #66

Open
brianwfl88 opened this issue Apr 4, 2017 · 2 comments
Open

Angular js 1 - Input date not working properly for a set date #66

brianwfl88 opened this issue Apr 4, 2017 · 2 comments

Comments

@brianwfl88
Copy link

brianwfl88 commented Apr 4, 2017

There's an issue with my date being erased after initializing the calendar plugin.
After the angular loaded the model into ng-model, the date is not showing up.

How can i stop this? Or any method to set a default date?

-- update --

I used timeout to call the calendar plugin after angularjs's setting the value, it work as expected.
However, when I did not select any date after popup closed, the input date got erased.

This is unexpected behavior I am encountering.

@mdehoog
Copy link
Owner

mdehoog commented Apr 9, 2017

Please provide a JSBin that reproduces the issue, thanks.

@douglasg14b
Copy link

douglasg14b commented May 4, 2017

I first encountered this when trying to use this calendar in my angular project. I made a pull request last year on the old repo and a comment on the old issue thread:

mdehoog/Semantic-UI#3

It's very much not ideal to have to set the calendar date after it has been initialized in an angular directive or something similar. It forces the use of jankey solutions such as timeout to try and set the value instead of being able to set it programatically from the start.

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

3 participants