diff --git a/debug/src/debug.js b/debug/src/debug.js index b69c916e53..1e47631ed9 100644 --- a/debug/src/debug.js +++ b/debug/src/debug.js @@ -428,7 +428,7 @@ export function initDebug() { ); } } else if (type === 'a' || type === 'button') { - if (getDomChildren(vnode).find(childType => childType === type)) { + if (getDomChildren(vnode).indexOf(type) !== -1) { console.error( `Improper nesting of interactive content. Your <${type}>` + ` should not have other ${type === 'a' ? 'anchor' : 'button'}` +