fix ripple error when using svg in button slot

pull/448/head
lochstar 2020-08-19 14:02:31 +10:00
parent f2b4d1b3f3
commit f815fdb37d
1 changed files with 2 additions and 2 deletions

View File

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