Adds a spellcheck option to eg-combobox for use with free text boxes
that do not include sensitive data, but sets it to false by default.
Signed-off-by: Stephanie Leary <stephanie.leary@equinoxOLI.org>
(blur)="onBlur()"
container="body"
(selectItem)="selectorChanged($event)"
- #instance="ngbTypeahead"/>
+ #instance="ngbTypeahead"
+ [spellcheck]="spellcheck" />
<div class="d-flex flex-column icons" (click)="openMe($event)">
<span class="material-icons">keyboard_arrow_up</span>
<span class="material-icons">keyboard_arrow_down</span>
@Input() allowFreeText = false;
+ // Set this to true for free text inputs only if the data is not sensitive.
+ // Do not allow spellchecking for users' personal data, like names and government IDs,
+ // since some browsers use remote services to check spelling.
+ @Input() spellcheck = false;
+
@Input() inputSize: number = null;
// If true, applies form-control-sm CSS