Closed desmondinho closed 2 weeks ago
The changes involve modifications to the destroy
function in the popover
module located in two JavaScript files: popover.bundle.js
and popover.js
. Both updates introduce a null check for the destroyOutsideClickHandler
before invoking it, ensuring that it is only called if it is defined. Additionally, the handler is set to null
after being called to prevent multiple invocations and manage state effectively. The core logic of popover initialization and positioning remains unchanged.
File Path | Change Summary |
---|---|
src/LumexUI/wwwroot/js/components/popover.* |
Updated destroy function to include a null check for destroyOutsideClickHandler before invocation and set it to null after calling. |
In the popover's cozy nook,
A handler's checked, no need to look.
With care we tidy, set it to rest,
No more errors, we’ve done our best!
Hopping along, with joy we play,
Clean and neat, hip-hip-hooray! 🐇✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit