-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the selected attribute on the option tag is not set #66
Comments
@sebastjan-hribar Thanks for reporting this problem. I've cloned your demo app (thanks for that 🙏 ). It can't work, because the framework only selects an We should expand select :author, authors, selected: book.id Then this check should be expanded accordingly:
WDYT? Is it something that you want to implement? Thanks! |
@jodosha I'm sorry for my late reply. Thank you for the feedback.
I'd be interested in trying to implement this, however I'm not confident I can do as good a job and as fast as an experienced person. But I have to start somewhere and sometime, right? 😄 On a second note: Before opening another issue, could you have a look at the template regards, |
@sebastjan-hribar I trust you. There are plenty of tests here: helpers/test/form_helper_test.rb Line 1135 in 4e91ee6
The |
@sebastjan-hribar |
Implemented by #69 |
Hi,
I'm using select helper and the selected attribute on the option tag is not automatically set. For example, when displaying an entity for edit and update.
I've setup a small bookshelf with book and author entities. It's minimalistic just to get the minimum required environment ready.
Hanami data:
hanami, '0.7.2'
hanami-model, '
> 0.5'> 0.3)hanami-helpers (
Sample app: https://github.com/sebastjan-hribar/hanami-bookshelf
This is the html from inspecting page:
I've similar problems in my other app, I've setup this one just for this select problem.
Please let me know if I should add further information.
regards,
Sebastjan
The text was updated successfully, but these errors were encountered: