This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 230
EXCEPTION: Assertion failed: org-dartlang-app:///packages/angular_forms/src/directives/shared.dart:25:7 dir.valueAccessor != null #1941
Comments
Not sure If I am correct, I also find it hard to understand on how to correctly implements custom value accessor. Did you try to bind NgControl to you ValueAccessor ? final NgControl ngControl;
ContentEditableDirective(this._element, @Self() @Optional() this.ngControl) {
ngControl?.valueAccessor = this;
}
void ngOnDestroy() {
ngControl?.valueAccessor = null;
} The other possible solution would be to inject you value accessor like it's done for DefaultValueAccessor |
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am having this problem even though I created the "ContentEditableDirective" directive and implementing the "ControlValueAccessor"
As can be seen below
template
component
Directive
The text was updated successfully, but these errors were encountered: