Skip to content

Commit

Permalink
Bind to name for label
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Jan 6, 2025
1 parent 5a5383b commit b27e801
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/primer/open_project/forms/autocompleter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def extend_autocomplete_inputs(inputs) # rubocop:disable Metrics/AbcSize
selected = @input.select_options.filter_map { |option| option.to_h if option.selected }
inputs[:model] = inputs[:multiple] ? selected : selected.first
inputs[:defaultData] = false
inputs[:bindLabel] = "name"
elsif builder.object
inputs[:inputValue] ||= builder.object.send(@input.name)
end
Expand Down

0 comments on commit b27e801

Please sign in to comment.