warning.js:33 Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.
See original GitHub issuewarning.js:33 Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.
in button (created by Title)
in CopyToClipboard (created by Title)
in div (created by Title)
in Title
in button (created by DownPanel)
in div (created by DownPanel)
in div (created by DownPanel)
in DownPanel (created by Container(DownPanel))
in Container(DownPanel) (created by Layout)
in div (created by Layout)
in div (created by Pane)
in Pane (created by SplitPane)
in div (created by SplitPane)
in SplitPane (created by Layout)
in div (created by Pane)
in Pane (created by SplitPane)
in div (created by SplitPane)
in SplitPane (created by Layout)
in div (created by Layout)
in Layout (created by Container(Layout))
in Container(Layout)
in div
This happens because of nested <button>
:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:6 (2 by maintainers)
Top Results From Across the Web
<button> cannot appear as a descendant of ... - Stack Overflow
In your App the Fab component is already nested in a Button ... to remove the top level Button component and use onClick...
Read more >Warning: validateDOMNesting(...): <button> cannot appear as ...
I wrapped a component that is by another component. Essentially a StyledButton within a Button. const StyledButton = styled(Button) Below is ...
Read more >button cannot appear as a descendant of button
Then I nested another <button> inside. That is when I experienced the react warning <button> cannot appear as a descendant of <button> ....
Read more >warning: validatedomnesting(...): <button> cannot appear as a ...
Below is Console log Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>. In the DOM I can see the custom Button...
Read more >Warning: validateDOMNesting(...): <button> cannot appear as ...
Warning : validateDOMNesting(...): <button> cannot appear as a descendant of <button>. in button ... AR: [Reset the list] button has nested button. image.png....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I thought nested buttons were ok. Isn’t that the point of event propagation? By default you can click both buttons unless you call event.stopPropagation() on the child event?
Any fix for this, i’m also using
<ButtonGroup>
with “reactstrap”: “^6.5.0”, and still getting this warning?Any solution to fix?
Thanks, Adnan