Skip to content

Commit

Permalink
In select links components we can't pick the currently picked value
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Feb 13, 2024
1 parent 21c2e88 commit 8943dc7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/components/tailwind/select_links.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
x-init="$watch('link', value => { window.location = value; })"
class="inline-block text-2xl text-navy">
<%# Hiding the select tag initially. It gets unhidden by javascript %>
<%# TODO: Disable the currently selected item %>
<div class="invisible" x-bind:class="{ invisible: false }">
<%= label_tag @id, @label, class: "mr-2" %>
<%= select_tag @id,
options_for_select(@container),
options_for_select(@container, disabled: @value),
class: "pl-4 py-3 pr-16 border-navy text-2xl text-navy focus:ring-4 focus:ring-sun-yellow",
"x-model" => "link" %>
</div>
Expand Down

0 comments on commit 8943dc7

Please sign in to comment.