Not sure If I am correct, I also find it hard to understand on how to correctly implements custom value accessor.
bll55020674 opened this issue · 1 comments
bll55020674 commented
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
Originally posted by @lejard-h in #1941 (comment)
lejard-h commented
@bll55020674 any reason to repost my comments here ?