Skip to content

Commit

Permalink
Merge pull request #5429 from nebulab/rainerd/ransack-filter/fix/para…
Browse files Browse the repository at this point in the history
…meterize-id-creation

[Admin] Ensure labels are clickable by parameterizing ids
  • Loading branch information
rainerdema authored Oct 11, 2023
2 parents 7aec6d0 + 5b24d71 commit ce69e2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def initialize(
def before_render
@selections = @options.map.with_index do |(label, value), opt_index|
Selection.new(
"#{stimulus_id}--#{label}-#{value}",
"#{stimulus_id}--#{label}-#{value}".parameterize,
label,
build(:attribute, @attribute, opt_index),
build(:predicate, @predicate, opt_index),
Expand Down

0 comments on commit ce69e2c

Please sign in to comment.