Merge pull request #448 from lochstar/button-slot-ripple-fix
Fix Ripple error when using svg in Button slotpull/457/head
commit
fb7a0d7547
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue