Skip to content

Commit 9a756ca

Browse files
SteffenDEgithub-actions[bot]
authored andcommitted
Update assets
1 parent 891696a commit 9a756ca

File tree

6 files changed

+23
-11
lines changed

6 files changed

+23
-11
lines changed

priv/static/phoenix_live_view.cjs.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.cjs.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.esm.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.esm.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

priv/static/phoenix_live_view.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6512,7 +6512,11 @@ removing illegal node: "${(childNode.outerHTML || childNode.nodeValue).trim()}"
65126512
dispatchClickAway(e, clickStartedAt) {
65136513
const phxClickAway = this.binding("click-away");
65146514
dom_default.all(document, `[${phxClickAway}]`, (el) => {
6515-
if (!(el.isSameNode(clickStartedAt) || el.contains(clickStartedAt))) {
6515+
if (!(el.isSameNode(clickStartedAt) || el.contains(clickStartedAt) || // When clicking a link with custom method,
6516+
// phoenix_html triggers a click on a submit button
6517+
// of a hidden form appended to the body. For such cases
6518+
// where the clicked target is hidden, we skip click-away.
6519+
!js_default.isVisible(clickStartedAt))) {
65166520
this.withinOwners(el, (view) => {
65176521
const phxEvent = el.getAttribute(phxClickAway);
65186522
if (js_default.isVisible(el) && js_default.isInViewport(el)) {

priv/static/phoenix_live_view.min.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)