Skip to content
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

Compare array attribute values for select options correctly #897

Merged
merged 1 commit into from
Oct 17, 2022

Conversation

matthewmcgarvey
Copy link
Member

@matthewmcgarvey matthewmcgarvey commented Oct 15, 2022

Fixes #896

The other method overload calls .to_s on both values because it uses Avram::PermittedAttribute#param instead of Avram::PermittedAttribute#value. The difference is that #param only provides string values while #value is the same type as the attribute (but always nilable).

@matthewmcgarvey matthewmcgarvey merged commit 636a7bf into luckyframework:main Oct 17, 2022
@matthewmcgarvey matthewmcgarvey deleted the fix-896 branch October 17, 2022 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

multi_select_input does not mark selected options correctly
2 participants