mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(forms): drop CALL_SET_DISABLED_STATE name in production (#59430)
In this commit, we drop the `CALL_SET_DISABLED_STATE` injection token name in production. PR Close #59430
This commit is contained in:
parent
e689aaed30
commit
854a5616bf
1 changed files with 7 additions and 4 deletions
|
|
@ -31,10 +31,13 @@ import {AsyncValidatorFn, Validator, ValidatorFn} from './validators';
|
|||
*
|
||||
* @see {@link FormsModule#withconfig}
|
||||
*/
|
||||
export const CALL_SET_DISABLED_STATE = new InjectionToken('CallSetDisabledState', {
|
||||
providedIn: 'root',
|
||||
factory: () => setDisabledStateDefault,
|
||||
});
|
||||
export const CALL_SET_DISABLED_STATE = new InjectionToken(
|
||||
typeof ngDevMode === 'undefined' || ngDevMode ? 'CallSetDisabledState' : '',
|
||||
{
|
||||
providedIn: 'root',
|
||||
factory: () => setDisabledStateDefault,
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
* The type for CALL_SET_DISABLED_STATE. If `always`, then ControlValueAccessor will always call
|
||||
|
|
|
|||
Loading…
Reference in a new issue