-
Notifications
You must be signed in to change notification settings - Fork 6.7k
init datepicker without model value bug #5417
Comments
This is already fixed in |
@wesleycho I don't think it is actually, this seems like a different issue. I built the latest version from the master branch and updated it in the plunkr. This seems to be a different issue and actually is a regression that now affects both inline AND popup datepickers in the current master branch. |
The fix is unreleased, and will be in 1.2.0 - that Plunker does not demonstrate it happening with the fix in. |
@wesleycho .... I downloaded the master zip and built the latest version myself and included that file as the UIB source in that plunkr... |
@trickpattyFH20, sure looks like you're including 1.1.2 in your |
ui-bootstrap-tpls-1.2.0-SNAPSHOT.min.js was the name of the file that was built... I renamed it to latestuibbuild.js in the plunkr.... I can rename it back to ui-bootstrap-tpls-1.2.0-SNAPSHOT.min.js in the plunkr if you'd like @wesleycho @icfantv Also it says * Version: 1.2.0-SNAPSHOT - 2016-02-05 in the comments of the file I built... The bug is still there... if the model value is undefined the datepickers do not display. Maybe it would help to re-open this issue so we could get some other eyes on the bug. I don't have time to dig in to the source today. |
the plunker you had before was not correct, hence my comment. it had only the HTML file and the example.js file. you must have forgotten to save it. |
ah... yes probably didn't save the plunkr. @icfantv |
Agreed. Even if you set |
@wesleycho, unless I'm missing something obvious, it sure looks like this is still an issue. |
Wait a second. You're getting errors in your console. This is not an issue. |
Please check/fix the errors and we'll go from there. |
http://plnkr.co/edit/13h4rpa2b3xUbSXxnuMO?p=preview looks like we still see the bug when the datepicker is not initialized with a date. |
@icfantv looks like the same error happened in @wesleycho 's latest build as well https://travis-ci.org/angular-ui/bootstrap/builds/107235596 any idea what this error means and how to resolve/merge the fix into this pr so that the travis build is successful? |
If a popup datepicker is initialized without a model value, everything functions as expected.
If an inline datepicker is initialzed without a model value, the datepicker does not display anything (only the arrows are shown)
http://plnkr.co/edit/13h4rpa2b3xUbSXxnuMO?p=preview
comment on line 4 of example.js in the UIB datepicker example plunkr reproduces the bug
The text was updated successfully, but these errors were encountered: