[v3.0.0] Default option for appendTo is not document.body
See original GitHub issueHello. I have updated to the latest version and expiriencing some issues with it.
-
By default
<Tippy />
is now appending itself toreference
parent while documentation says that default options isdocument.body
. I need to set it explicitly in order to make it work. -
Option
interactive
is getting ignored whileappendTo
is notdocument.body
.hideOnClick={false}
can fix that but console will be showing this warning:
Is this an expected behavior?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
document.body.appendChild() will work but not when I try to ...
body. appendChild() will work but not when I try to append to a specific element in the body - Stack Overflow. Stack Overflow...
Read more >Zepto Docs
Zepto is a minimalist JavaScript library for modern browsers with a largely jQuery-compatible API. If you use jQuery, you already know how to...
Read more >.appendTo() | jQuery API Documentation
The .append() and .appendTo() methods perform the same task. The major difference is in the syntax-specifically, in the placement of the content and...
Read more >Popovers - Bootstrap
Overview · Popovers rely on the 3rd party library Popper. · Popovers require the tooltip plugin as a dependency. · If you're building...
Read more >Dialog Widget - jQuery UI API Documentation
Default : "body". Which element the dialog (and overlay, if modal) should be appended to. Note: The appendTo option should not be changed...
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
If
interactive: true
, then the tippy is appended to the reference element’s parent node unless you specify your ownappendTo
value – that way, interactive elements inside the tippy can be focused next once the reference element is blurred.If it’s appended to the body (as before), then any focusable elements in between the ref element and the end of the body will be next in focus order, so the popover is “disjoined” for keyboard use making it inaccessible.
You can disable this default behavior if you use your own
appendTo
, but you would need to create some kind of focus management solution to handle the popover for keyboard.interactive: true
has no effect whileappendTo
is not set todocument.body