-
Notifications
You must be signed in to change notification settings - Fork 6.7k
additional datepicker tpl flash to the right when used with form #5446
Comments
This may very well be a positioning bug and if so, it may be fixed by #5444. |
@icfantv
I will do more research and see what I can find. If you include |
@icfantv I could try to dig into the source for this one too. btw thank y'all for merging my last pr. |
notes on the bug:
temporary workaround: |
I summon thee @RobJacobs , master of all positioning issues :) |
I wish it was as simple as positioning, but it seems to be something with the $animation. In this plunk the second month doesn't show up until it gets in this function - line 5434 in the $$AnimateAsyncRunFactoryProvider:
Then all the days get doubled for each week displayed: I don't think this is isolated to being in a form element as I see this behavior in Edge without it. |
Not sure if we can fix this - perhaps an issue is worth filing in Angular's repo? |
Just to add a little more information to this issue. I encountered it using 0.14.3 when I added some custom $validators to the ngModelController of the datepicker. I was seeing it the first time the classes involved in animating the element to the valid or invalid state were added a second calendar would show up temporarily. Since I didn't want to show any sort of invalid state on the actual picker, I resolved it in my case by bringing in the $animate service and calling $animate.enabled( [pickerElement], false). BTW, I'm using Angular 1.4.2. |
I resolve this issue by disabling display more then 7 cell(day) in a row : Where table is inside the datepicker and |
@ksufinski's CSS patch worked for me, except that I needed |
a workaround is to add something like this: but it would be good if we can pass in a class name that can be added to the calendar elements themselves, this way we can disable it through $animateProvider: myApp.config(function($animateProvider) { |
http://plnkr.co/edit/4FxFC1haWWc9rIBwXpxx?p=preview
I noticed some odd behavior when a datepicker is wrapped inside of
<form>
tags.As the issue occurs in the web app I am working on, the first selection of a date causes an additional datepicker tpl to flash in very quickly on the right side and then disappear. If you continue to select dates after this, the additional tpl + flash does not happen.
In the above plunkr, the same thing happens, along with another interesting thing... if you select a date for the datepicker wrapped in the
<form>
tags, it flashes, and if you then continue to select dates, alternating between the one inside the<form>
tags, and the one not in<form>
tags, the issue continues to happen... very strange.This is based on the latest release of UIB, using the example datepicker html, with the only change being that I added
<form>
tags surrounding one of the datepickers.If I am missing something here, LMK, any help would be much appreciated, if not, I think I may have found a datepicker bug.
The text was updated successfully, but these errors were encountered: