Skip to content

Commit 73cf352

Browse files
committed
change noAnimation to execute immediately rather than on next tick
1 parent c834842 commit 73cf352

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

modules/transitionRegistry.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,19 +39,15 @@ function configureDefaultTransition() {
3939

4040
const noAnimation = (value, config) => ({
4141
start(callback) {
42-
const setValue = () => {
43-
value.setValue(config.toValue);
42+
value.setValue(config.toValue);
4443

45-
const result = {
46-
finished: true,
47-
};
48-
49-
if (callback) {
50-
callback(result);
51-
}
44+
const result = {
45+
finished: true,
5246
};
5347

54-
setTimeout(setValue);
48+
if (callback) {
49+
callback(result);
50+
}
5551
},
5652
stop: () => {
5753
value.stopAnimation();

0 commit comments

Comments
 (0)