Merge pull request #448 from lochstar/button-slot-ripple-fix

Fix Ripple error when using svg in Button slot
pull/457/head
Cagatay Civici 2020-08-27 13:56:07 +03:00 committed by GitHub
commit fb7a0d7547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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];
}
}