Skip to content

Commit a41a244

Browse files
authored
Merge pull request #4057 from saschaszott/saschaszott-patch-11
apply spellCheck configuration to input model
2 parents f44599a + 13ae42f commit a41a244

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/app/shared/form/builder/parsers/onebox-field-parser.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
DynamicSelectModelConfig,
44
} from '@ng-dynamic-forms/core';
55

6+
import { environment } from '../../../../../environments/environment';
67
import { isNotEmpty } from '../../../empty.util';
78
import {
89
DsDynamicInputModel,
@@ -90,6 +91,7 @@ export class OneboxFieldParser extends FieldParser {
9091
return new DynamicOneboxModel(oneboxModelConfig);
9192
} else {
9293
const inputModelConfig: DsDynamicInputModelConfig = this.initModel(null, label);
94+
inputModelConfig.spellCheck = environment.form.spellCheck;
9395
this.setValues(inputModelConfig, fieldValue);
9496

9597
return new DsDynamicInputModel(inputModelConfig);

0 commit comments

Comments
 (0)