File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
src/core/components/mdInkRipple Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 188
188
this .parentElement = this .getClosestPositionedParent (this .$el .parentNode );
189
189
this .previous = [' mouse' ];
190
190
191
- if (! this .parentElement ) {
192
- this .$destroy ();
193
- } else {
191
+ if (this .parentElement ) {
194
192
this .rippleElement .parentNode .removeChild (this .rippleElement );
195
- this .parentElement .appendChild (this .rippleElement );
196
- this .registerTriggerEvent ();
197
- this .setDimensions ();
193
+
194
+ if (this .parentElement .querySelectorAll (' .md-ink-ripple' ).length > 0 ) {
195
+ this .$destroy ();
196
+ } else {
197
+ this .parentElement .appendChild (this .rippleElement );
198
+ this .registerTriggerEvent ();
199
+ this .setDimensions ();
200
+ }
201
+ } else {
202
+ this .$destroy ();
198
203
}
199
204
},
200
205
destroy () {
You can’t perform that action at this time.
0 commit comments