From 3aa15885cccf18e1f0f8fb73caf407c2a9baf62a Mon Sep 17 00:00:00 2001 From: stu Date: Sun, 17 Sep 2023 14:07:44 +0800 Subject: [PATCH] popover - note on disabled components --- docs/guides/modules/popover.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/guides/modules/popover.rst b/docs/guides/modules/popover.rst index fac3f661..1e638f2a 100644 --- a/docs/guides/modules/popover.rst +++ b/docs/guides/modules/popover.rst @@ -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.