You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 29, 2019. It is now read-only.
Collapse has a strange flickering when is opened by default at first rendering and some delayed content is loaded. I took a look in the collapse directive and the expand() logic is still ran.
// This should add `collapse in` classif(!scope.$eval(attrs.uibCollapse)){element.addClass('in').addClass('collapse').css({height: 'auto'});}functionexpand(){
...
if($animateCss){$animateCss(element,{addClass: 'in',easing: 'ease',// if the async content is loaded after this// it will cause an animation towards the new scrollHeightto: {height: element[0].scrollHeight+'px'}}).start()['finally'](expandDone);}else{
...
}}// Still the watcher will trigger expand logicscope.$watch(attrs.uibCollapse,function(shouldCollapse){if(shouldCollapse){collapse();}else{expand();}});
Because we need to skip expand() only for the first rendering we can add a simple check inside the watcher:
@bogdanalexe90, per these instructions, can you please post a plunker that reproduces the issues? Doing this for bugs usually greatly reduces the time it takes for us to diagnose and fix issues. Thanks.
Collapse has a strange flickering when is opened by default at first rendering and some delayed content is loaded. I took a look in the collapse directive and the
expand()
logic is still ran.Because we need to skip
expand()
only for the first rendering we can add a simple check inside the watcher:The text was updated successfully, but these errors were encountered: