### File

`src/question/select.service.ts`

### Index

###### Methods
Public onChangeOption

### Methods

Public onChangeOption
`onChangeOption(htmlFormControl: HTMLInputElement, formControl: FormControl, question: Select)`
Defined in src/question/select.service.ts:7
Parameters :
Name | Type | Optional | Description
htmlFormControl | `HTMLInputElement` |  |
formControl | `FormControl` |  |
question | `Select` |  |
Returns : `void`

    import { FormControl } from '@angular/forms';

    import { Select } from '.';

    export class SelectService {

      public static onChangeOption(htmlFormControl: HTMLInputElement, formControl: FormControl, question: Select): void {
        if (htmlFormControl.value === question.editableOption) {
          formControl.setValue(null);
          htmlFormControl.value = question.editableOption;
        }
      }
    }

# results matching ""

# No results matching ""