mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 07:23:03 +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,
|
||||
} from '@ng-dynamic-forms/core';
|
||||
|
||||
import { environment } from '../../../../../environments/environment';
|
||||
import { isNotEmpty } from '../../../empty.util';
|
||||
import {
|
||||
DsDynamicInputModel,
|
||||
@@ -90,6 +91,7 @@ export class OneboxFieldParser extends FieldParser {
|
||||
return new DynamicOneboxModel(oneboxModelConfig);
|
||||
} else {
|
||||
const inputModelConfig: DsDynamicInputModelConfig = this.initModel(null, label);
|
||||
inputModelConfig.spellCheck = environment.form.spellCheck;
|
||||
this.setValues(inputModelConfig, fieldValue);
|
||||
|
||||
return new DsDynamicInputModel(inputModelConfig);
|
||||
|
Reference in New Issue
Block a user