mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-19 07:53:02 +00:00
Merge pull request #4057 from saschaszott/saschaszott-patch-11
apply spellCheck configuration to input model
This commit is contained in:
@@ -3,6 +3,7 @@ import {
|
|||||||
DynamicSelectModelConfig,
|
DynamicSelectModelConfig,
|
||||||
} from '@ng-dynamic-forms/core';
|
} from '@ng-dynamic-forms/core';
|
||||||
|
|
||||||
|
import { environment } from '../../../../../environments/environment';
|
||||||
import { isNotEmpty } from '../../../empty.util';
|
import { isNotEmpty } from '../../../empty.util';
|
||||||
import {
|
import {
|
||||||
DsDynamicInputModel,
|
DsDynamicInputModel,
|
||||||
@@ -90,6 +91,7 @@ export class OneboxFieldParser extends FieldParser {
|
|||||||
return new DynamicOneboxModel(oneboxModelConfig);
|
return new DynamicOneboxModel(oneboxModelConfig);
|
||||||
} else {
|
} else {
|
||||||
const inputModelConfig: DsDynamicInputModelConfig = this.initModel(null, label);
|
const inputModelConfig: DsDynamicInputModelConfig = this.initModel(null, label);
|
||||||
|
inputModelConfig.spellCheck = environment.form.spellCheck;
|
||||||
this.setValues(inputModelConfig, fieldValue);
|
this.setValues(inputModelConfig, fieldValue);
|
||||||
|
|
||||||
return new DsDynamicInputModel(inputModelConfig);
|
return new DsDynamicInputModel(inputModelConfig);
|
||||||
|
Reference in New Issue
Block a user