fix ripple error when using svg in button slot
parent
f2b4d1b3f3
commit
f815fdb37d
|
@ -54,7 +54,7 @@ function onAnimationEnd(event) {
|
|||
|
||||
function getInk(el) {
|
||||
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];
|
||||
}
|
||||
}
|
||||
|
@ -73,4 +73,4 @@ const Ripple = {
|
|||
}
|
||||
};
|
||||
|
||||
export default Ripple;
|
||||
export default Ripple;
|
||||
|
|
Loading…
Reference in New Issue