Skip to content

Commit

Permalink
Merge pull request #456 from anvilistas/popover-docs
Browse files Browse the repository at this point in the history
popover - note on disabled components
  • Loading branch information
meatballs authored Sep 17, 2023
2 parents 6dbe9b4 + 3aa1588 commit 91ec618
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions docs/guides/modules/popover.rst
Original file line number Diff line number Diff line change
Expand Up @@ -196,3 +196,12 @@ Alternatively you could dynamically insert the container component in your MainF
def __init__(self, **event_args):
content_div = anvil.js.get_dom_node(self).querySelector(".content")
content_div.appendChild(popover_container)
Popover on disabled components
------------------------------

It is not possible to use a popover on a disabled component.
This is because there are no pointer events on disabled components and so events like hover won't fire.
If you need a popover on a disabled component wrap the component in something like a ``FlowPanel`` or ``LinearPanel``
and add the popover to the container instead.

0 comments on commit 91ec618

Please sign in to comment.