From efca0aee7f437d45dc9f1bb0ab4b188e926458d7 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Thu, 20 Sep 2018 13:21:26 -0500 Subject: [PATCH] feat(ripple): ability to disable ripple effect w/ querystring --- core/src/components/ripple-effect/ripple-effect.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/components/ripple-effect/ripple-effect.tsx b/core/src/components/ripple-effect/ripple-effect.tsx index 34fa56a097..d4b30a845b 100644 --- a/core/src/components/ripple-effect/ripple-effect.tsx +++ b/core/src/components/ripple-effect/ripple-effect.tsx @@ -19,7 +19,9 @@ export class RippleEffect implements ComponentInterface { */ @Method() addRipple(pageX: number, pageY: number) { - rIC(() => this.prepareRipple(pageX, pageY)); + if (!location.search.includes('ionic:animate=false')) { + rIC(() => this.prepareRipple(pageX, pageY)); + } } private prepareRipple(pageX: number, pageY: number) {