phoenix_live_view 1.1.25 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/js/phoenix_live_view/live_socket.js +5 -1
- package/package.json +1 -1
- package/priv/static/phoenix_live_view.cjs.js +6 -2
- package/priv/static/phoenix_live_view.cjs.js.map +2 -2
- package/priv/static/phoenix_live_view.esm.js +6 -2
- package/priv/static/phoenix_live_view.esm.js.map +2 -2
- package/priv/static/phoenix_live_view.js +6 -2
- package/priv/static/phoenix_live_view.min.js +1 -1
|
@@ -891,7 +891,11 @@ export default class LiveSocket {
|
|
|
891
891
|
// phoenix_html triggers a click on a submit button
|
|
892
892
|
// of a hidden form appended to the body. For such cases
|
|
893
893
|
// where the clicked target is hidden, we skip click-away.
|
|
894
|
-
|
|
894
|
+
//
|
|
895
|
+
// Also, when we have a portal, we don't want to check the visibility
|
|
896
|
+
// of the portal source, as it's a <template> that is always not visible.
|
|
897
|
+
// Instead, check the visibility of the original click target.
|
|
898
|
+
!JS.isVisible(clickStartedAt)
|
|
895
899
|
)
|
|
896
900
|
) {
|
|
897
901
|
this.withinOwners(el, (view) => {
|
package/package.json
CHANGED
|
@@ -5934,7 +5934,7 @@ var LiveSocket = class {
|
|
|
5934
5934
|
}
|
|
5935
5935
|
// public
|
|
5936
5936
|
version() {
|
|
5937
|
-
return "1.1.
|
|
5937
|
+
return "1.1.26";
|
|
5938
5938
|
}
|
|
5939
5939
|
isProfileEnabled() {
|
|
5940
5940
|
return this.sessionStorage.getItem(PHX_LV_PROFILE) === "true";
|
|
@@ -6551,7 +6551,11 @@ var LiveSocket = class {
|
|
|
6551
6551
|
// phoenix_html triggers a click on a submit button
|
|
6552
6552
|
// of a hidden form appended to the body. For such cases
|
|
6553
6553
|
// where the clicked target is hidden, we skip click-away.
|
|
6554
|
-
|
|
6554
|
+
//
|
|
6555
|
+
// Also, when we have a portal, we don't want to check the visibility
|
|
6556
|
+
// of the portal source, as it's a <template> that is always not visible.
|
|
6557
|
+
// Instead, check the visibility of the original click target.
|
|
6558
|
+
!js_default.isVisible(clickStartedAt))) {
|
|
6555
6559
|
this.withinOwners(el, (view) => {
|
|
6556
6560
|
const phxEvent = el.getAttribute(phxClickAway);
|
|
6557
6561
|
if (js_default.isVisible(el) && js_default.isInViewport(el)) {
|