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

<BsForm::Element> should respect @value argument #1406

Merged
merged 2 commits into from Jan 21, 2021

Conversation

jelhan
Copy link
Contributor

@jelhan jelhan commented Jan 20, 2021

#1339 refactored <BsForm::Element> from @ember/component to @glimmer/component. For a @ember/component setting the @value argument executed the value setter of the component. But this is not the case anymore after changing to @glimmer/component. Therefore the component was not using the @value argument anymore at all.

The good thing is that keeping a local copy of the state it is not needed anymore at all. As argument and component property is decoupled by @glimmer/component we can handle all cases in the getter.

Thanks a lot to @lindyhopchris for providing the failing test.

Closes #1403 and #1404

Copy link
Contributor

@simonihmig simonihmig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix!

@simonihmig simonihmig merged commit ee471f1 into master Jan 21, 2021
@simonihmig simonihmig deleted the bs-form-element-ignores-value-argument branch January 21, 2021 13:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Form element @value argument is not rendered as initial value of form control
3 participants