-
Notifications
You must be signed in to change notification settings - Fork 16
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
Seems to be broken with ember-source >= 3.21.2 and [email protected] #33
Comments
Same problem, obviously, on Ember 3.22.0. Removing |
To be honest: I don't know. Due to current validation plugin API used by Ember Bootstrap we need to use a computed property. But Ember Changeset Validations using a tracked property. It's only working together if But Ember Bootstrap uses its
I don't think the assertion will go away. As far as I got it it's technically correct. Using The only solution I see so far is to change Ember Bootstrap. It's already planned to rewrite But I'm not sure if anyone researched yet if the current validation plugin API is compatible with |
I would guess that decorators ARE contained somewhere in the class definition. I couldn't find any information, though. The idea is: if we "reset" the |
That might work indeed. @danieledraganti Do you have time to try it out? |
@jelhan Sure, will try it today or tomorrow and make a pull request in case it works. |
I tried the following: class NoErrorsBsFormElement extends BsFormElement {
'__ember-bootstrap_subclass' = true;
constructor() {
super(...arguments);
delete this.errors;
}
} ... and then extending |
If I recall correctly computed properties are registered on the prototype not on the class instance. So maybe we need to delete |
The assertion has been backported to latest LTS in |
I finished the |
Looks like the assertion has now been removed: That was tagged as |
Great news! |
I'm seeing this as fixed in |
It's fixed by #34. Just pending for Ember Bootstrap release. Will ask @simonihmig if we can do a release of Ember Bootstrap soon. |
Should be fixed in |
After upgrading EB to its version 4.2.0.
I get this error
You attempted to use @dependentKeyCompat on a property that already has been decorated with either @computed or @tracked....
After a little debug it comes from the class
BsFormElementWithChangesetValidationsSupport
with theerrors
getter.The text was updated successfully, but these errors were encountered: