Merge pull request #809 from basecamp/fix-dialog-controller-error

Dialog target needs to be in the DOM on connect
This commit is contained in:
Jason Zimdars
2025-07-25 07:22:41 -05:00
committed by GitHub
2 changed files with 5 additions and 4 deletions
+3 -1
View File
@@ -17,6 +17,8 @@
<span class="for-screen-reader">Add a tag</span>
</button>
<%= turbo_frame_tag card, :tagging, src: new_card_tagging_path(card) %>
<dialog class="popup panel flex-column align-start justify-start fill-white shadow txt-small" data-dialog-target="dialog">
<%= turbo_frame_tag card, :tagging, src: new_card_tagging_path(card) %>
</dialog>
</div>
</div>
+2 -3
View File
@@ -1,7 +1,6 @@
<%= turbo_frame_tag @card, :tagging do %>
<dialog class="popup panel flex-column align-start justify-start fill-white shadow txt-small"
<div class="flex-column"
data-controller="filter navigable-list"
data-dialog-target="dialog filter navigable-list"
data-navigable-list-focus-on-selection-value="false"
data-navigable-list-actionable-items-value="true"
data-action="keydown->navigable-list#navigate filter:changed->navigable-list#reset"
@@ -25,5 +24,5 @@
</li>
<% end %>
</ul>
</dialog>
</div>
<% end %>