diff options
Diffstat (limited to 'app/helpers/listbox_helper.rb')
-rw-r--r-- | app/helpers/listbox_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/listbox_helper.rb b/app/helpers/listbox_helper.rb index 0aaeb39c82d..6a7e09f75e4 100644 --- a/app/helpers/listbox_helper.rb +++ b/app/helpers/listbox_helper.rb @@ -23,7 +23,7 @@ module ListboxHelper # # The final parameter `html_options` applies arbitrary attributes to the # returned tag. Some of these are passed to the underlying Vue component as - # props, e.g., to right-align the menu of items, add `data: { right: true }`. + # props, e.g., to right-align the menu of items, add `data: { placement: 'right' }`. # # Examples: # # Create a listbox with two items, with the first item selected @@ -32,7 +32,7 @@ module ListboxHelper # = gl_redirect_listbox_tag items, 'foo' # # # Create the same listbox, right-align the menu and add margin styling - # = gl_redirect_listbox_tag items, 'foo', class: 'gl-ml-3', data: { right: true } + # = gl_redirect_listbox_tag items, 'foo', class: 'gl-ml-3', data: { placement: 'right' } def gl_redirect_listbox_tag(items, selected, html_options = {}) # Add script tag for app/assets/javascripts/entrypoints/behaviors/redirect_listbox.js content_for :page_specific_javascripts do |