We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
.find()
.indexOf()
1 parent 8a45c30 commit a51c8e2Copy full SHA for a51c8e2
debug/src/debug.js
@@ -428,7 +428,7 @@ export function initDebug() {
428
);
429
}
430
} else if (type === 'a' || type === 'button') {
431
- if (getDomChildren(vnode).find(childType => childType === type)) {
+ if (getDomChildren(vnode).indexOf(type) !== -1) {
432
console.error(
433
`Improper nesting of interactive content. Your <${type}>` +
434
` should not have other ${type === 'a' ? 'anchor' : 'button'}` +
0 commit comments