-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
…how/ngHide Since ngShow/ngHide animations add and remove the .ng-hide class, having to remember to write display:block on your own is a hassle and leads to problematic animation code. This fix places a default on the animation for you instead. Closes #3813
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,9 @@ | |
ng\:form { | ||
display: block; | ||
} | ||
|
||
/* show the element during a show/hide animation when the | ||
* animation is ongoing, but the .ng-hide class is active */ | ||
.ng-hide-add-active, .ng-hide-remove { | ||
display: block!important; | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
matsko
Author
Contributor
|
||
} |
This cause problem when using animate on inline or inline-block elements, etc.
I suggest use
display:initial
instead.