Skip to content

Commit

Permalink
fix: removes dasherize from variable used for attributes (#1893)
Browse files Browse the repository at this point in the history
* chore: update browserslist dependency

* fix: removes dasherize variable used for attributes

* fix: remove update

* fix: adjust id conditional
  • Loading branch information
pixelflips authored Jun 5, 2024
1 parent 523fa6b commit 08c78cd
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
<%
# Temporary variables here until refactor for 'name' is complete; see https://kajabi.atlassian.net/browse/SAGE-214
label = component.label || component.name;
select_id = component.id.downcase.dasherize if component.id;
select_name = label.downcase.dasherize;
select_id = component.id ? component.id.downcase : label.downcase.dasherize;
%>

<div class="
Expand Down Expand Up @@ -48,7 +47,7 @@
<% end %>
<% end %>
</select>
<label class="sage-select__label" for="<%= select_name %>"><%= label %></label>
<label class="sage-select__label" for="<%= select_id %>"><%= label %></label>
<i class="sage-select__arrow" aria-hidden="true"></i>
<% if component.message.present? %>
<div class="sage-select__info">
Expand Down

0 comments on commit 08c78cd

Please sign in to comment.