-
Notifications
You must be signed in to change notification settings - Fork 6.7k
TimePicker shows current time when model is empty. #1114
Comments
+1 |
After looking at this one, that seems a pretty easy fix, but the question is whether this is the default behavior we want or not, because adding another configuration parameter for this seems like an overkill. Also, after #1561 is merged, we can add another directive as an alternative option, but I am not sure if it's worth the trouble. WDYT? |
In the meantime - if I was to modify the existing version locally to suit the needs of my project - how would I set this to so that it appears blank unless edited? Thanks |
@toners At |
+1 |
3 similar comments
+1 |
+1 |
+1 |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
1 similar comment
+1 |
+1 |
5 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 why don't merge this? |
@rvanbaalen I think I contributed to the discussion and in the last month no one responded to the points I made. Does that mean that you all agree? Shall we move on to implementation and a pull request? Who will merge it if no one feels responsible for the issue? |
If this would be helpful, here's my implementation of the timepicker that shows empty inputs when the given model is null. |
This is a much more difficult feature to implement than I expected - to properly do this has a lot of side-effects that needs to be accounted for. I'm not sure it is as easy as people think. |
You're right... it is not easy to implement. Take a look at this Plunker where I've implemented it. The only thing I'm not real happy about is that $touched is set after moving from the hour field to the minute field, but otherwise it's a pretty good start. |
Mind making those changes and opening a PR? I can review it and help make it good to get in. |
Sure thing. |
Do you know when the fix for this issue will be on bower? |
@helenev, I'm on my phone so I can't easily check. If this is in the 1.0 release, then we don't have a date yet as we have some things we need to finish up for it. Our goal is to release by the end of the year. If you want, feel free to pull |
Was this ever fixed? |
+1 |
Im still not able to fix this, any workaround on thsi? |
+1 |
TimePicker shows current time when the model is null or cleared. On the contrary, DatePicker is blank when model is empty, which is the correct approach. It is impossible to tell when the TimePicker model is not set by looking at the control. TimePicker should be blank when model is not set.
The text was updated successfully, but these errors were encountered: