Skip to content

avo-hq/hotwire_combobox_value

This branch is 1 commit ahead of main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4c3d51d · Dec 19, 2024

History

8 Commits
Nov 25, 2024
Dec 3, 2024
Nov 25, 2024
Nov 26, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Dec 19, 2024
Nov 26, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024
Nov 25, 2024

Repository files navigation

Setup

bundle
rails db:setup
rails s

Reproduce

  1. Visit localhost:3000
  2. Click "New post"
  3. Click on "Status"
  4. Select an arbitrary option
  5. Click "Create Post"
  6. On show view label will be the product ID and that's ok
  7. Click "Edit this post"
  8. Stauts will have the product' ID instead the TITLE
  9. Click status then click outside of the select (to close it without selecting another value)
  10. Notice than step 9. made the status to refresh with the product's TITLE

Goal

When using the combobox form helper there should be possible to pass the value as a hash or any other object type that respond to value and label.

Passing that as value the combobox should have the needed information to render the current option correctly.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published