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.
1 parent 8d1be11 commit 33926e7Copy full SHA for 33926e7
packages/@react-aria/collections/src/Hidden.tsx
@@ -66,6 +66,10 @@ if (typeof HTMLTemplateElement !== 'undefined') {
66
enumerable: true,
67
value: function (node, child) {
68
if (this.dataset.reactAriaHidden) {
69
+ // child might not exist in this.content for some reason (stale?), add to end instead
70
+ if (child && !this.content.contains(child)) {
71
+ return this.content.appendChild(node);
72
+ }
73
return this.content.insertBefore(node, child);
74
} else {
75
return originalInsertBefore.call(this, node, child);
0 commit comments