Skip to content

Commit 0a4c75a

Browse files
committed
Supress animation by default apart from error messages
1 parent 513b2a6 commit 0a4c75a

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "Mark Chapman <support@forms-angular.org>",
44
"description": "A form builder that sits on top of Angular.js, Twitter Bootstrap, jQuery UI, Angular-UI, Express and Mongoose. Opinionated or what?",
55
"homepage": "http://forms-angular.org",
6-
"version": "0.12.0-beta.47",
6+
"version": "0.12.0-beta.48",
77
"engines": {
88
"node": ">=8.x",
99
"npm": ">=5.x"

src/client/less/forms-angular-bs-common.less

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,12 @@ button#saveButton[disabled]:hover + #why-disabled.showwhy {
211211
top: 22px;
212212
}
213213

214+
.ng-animate {
215+
// Turn animation off as it interferes with some existing code when (for instance) switching views
216+
// The phase gets set to "ready" even though there are potentially multiple views on the screen
217+
animation-duration: 0s;
218+
}
219+
214220
#display-error {
215221
position: fixed;
216222
top: 60px;
@@ -221,7 +227,7 @@ button#saveButton[disabled]:hover + #why-disabled.showwhy {
221227
#display-error.ng-hide {
222228
opacity: 0;
223229
}
224-
#display-error.ng-hide-add,
230+
#display-error.ng-hide-add, // animate the error display
225231
#display-error.ng-hide-remove {
226232
transition: all linear 0.5s;
227233
}

0 commit comments

Comments
 (0)