Skip to content

Commit

Permalink
escape names in feedback-for selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Deusch committed Feb 1, 2024
1 parent 39dcd72 commit dc35bb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/phoenix_live_view/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ let DOM = {
}

if(feedbacks.length > 0){
let selector = feedbacks.map(f => `[${phxFeedbackFor}="${f}"]`).join(", ")
let selector = feedbacks.map(f => `[${phxFeedbackFor}="${CSS.escape(f)}"]`).join(", ")
DOM.all(container, selector, el => el.classList.add(PHX_NO_FEEDBACK_CLASS))
}
},
Expand Down

0 comments on commit dc35bb2

Please sign in to comment.