fix ripple error when using svg in button slot
parent
f2b4d1b3f3
commit
f815fdb37d
|
@ -54,7 +54,7 @@ function onAnimationEnd(event) {
|
||||||
|
|
||||||
function getInk(el) {
|
function getInk(el) {
|
||||||
for (let i = 0; i < el.children.length; i++) {
|
for (let i = 0; i < el.children.length; i++) {
|
||||||
if (el.children[i].className.indexOf('p-ink') !== -1) {
|
if (typeof el.children[i].className === 'string' && el.children[i].className.indexOf('p-ink') !== -1) {
|
||||||
return el.children[i];
|
return el.children[i];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue