Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Convert extended Form to native class, providing compatibility with ember-bootstrap 5.1+ #42

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

simonihmig
Copy link
Contributor

This should unblock ember-bootstrap/ember-bootstrap#1775 (took me way to long to get back to this...)

Tested locally with yalc and that branch of ember-bootstrap.

Copy link
Collaborator

@jelhan jelhan left a comment

Choose a reason for hiding this comment

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

Thanks a lot for working on this one!


await m.validate();
if (!model.get('isValid')) {
throw new Error();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we add a meaningful error message? I know we haven't had one before. Just noticed when reviewing. So not required for this one to be merged.

@simonihmig simonihmig merged commit 2ebb518 into master Apr 28, 2022
@simonihmig simonihmig deleted the native-form-class branch April 29, 2022 07:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants