Update bind-server-validation-to-form-control.controller.ts
revert observeSymbol
This commit is contained in:
@@ -5,14 +5,14 @@ import { defaultMemoization, simpleHashCode } from '@umbraco-cms/backoffice/obse
|
||||
import { UmbControllerBase } from '@umbraco-cms/backoffice/class-api';
|
||||
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
|
||||
|
||||
const observeSymbol = Symbol();
|
||||
|
||||
/**
|
||||
* Binds server validation to a form control.
|
||||
* This controller will add a custom error to the form control if the validation context has any messages for the specified data path.
|
||||
*/
|
||||
export class UmbBindServerValidationToFormControl extends UmbControllerBase {
|
||||
|
||||
#observeSymbol = Symbol();
|
||||
|
||||
#context?: typeof UMB_VALIDATION_CONTEXT.TYPE;
|
||||
|
||||
#control: UmbFormControlMixinInterface<unknown>;
|
||||
@@ -57,7 +57,7 @@ export class UmbBindServerValidationToFormControl extends UmbControllerBase {
|
||||
this.#demolish();
|
||||
}
|
||||
},
|
||||
this.#observeSymbol,
|
||||
observeSymbol,
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user