Skip to content

Commit

Permalink
Add comment to JS for Button :modal option
Browse files Browse the repository at this point in the history
  • Loading branch information
davidalejandroaguilar committed Sep 27, 2024
1 parent e661e78 commit b18f940
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/phlexy_ui/button.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def view_template(&)
options[:data][:modal] = modal
script do
unsafe_raw <<~JS
// Will be replaced with a single line on the <button> once Phlex 2.0 is released.
(() => {
if (window.PhlexyUI && window.PhlexyUI.modalInitialized) {
return;
Expand Down

0 comments on commit b18f940

Please sign in to comment.