floating-vue icon indicating copy to clipboard operation
floating-vue copied to clipboard

Support Shadow DOM

Open cihad opened this issue 6 years ago • 4 comments

If Popover.vue#L685 be:

const contains = popover.$refs.popover.contains(event.composedPath()[0])

It will runs inside Shadow DOM.

Now, inside shadow dom the popover window closes when click on it.

cihad avatar Sep 03 '19 17:09 cihad

Possible to get a PR for this?

genu avatar Oct 15 '19 21:10 genu

having the same problem here.

Using container : 'body' wont work correctly as the styles reside inside the shadow dom and having no effect for something outside of the shadow dom

Using container: false wont work correctly, the styles are applied, tooltips show, but wont hide.

any chance we get this working correctly in web components?

digitalkaoz avatar May 27 '21 08:05 digitalkaoz

In v3.0 there is no problem with popover not closing itself. However, it’s still not possible to specify exact element inside the Shadow DOM that the popover should be appended to. I made a pull request to allow providing a callback to the container option so that the container could be resolved dynamically.

Rigidoont avatar Dec 20 '21 10:12 Rigidoont

@@ -1,3 +1,17 @@

3.0.0-beta.20 (2022-01-13)

Bug Fixes

  • exclude popper content from target nodes (dcd6159)

Features

  • add popper methods show/hide to createTooltip() (bf2bb49)

3.0.0-beta.19 (2022-01-13)

pythonking2907 avatar Jan 14 '22 17:01 pythonking2907