* `Selects the option while indicating the selection came from the user. Used to * determine if the select's view -> model callback should be invoked.`
()
| 241 | * determine if the select's view -> model callback should be invoked.` |
| 242 | */ |
| 243 | _selectViaInteraction(): void { |
| 244 | if (!this.disabled) { |
| 245 | this._selected = this.multiple ? !this._selected : true; |
| 246 | this._changeDetectorRef.markForCheck(); |
| 247 | this._emitSelectionChangeEvent(true); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | /** Returns the correct tabindex for the option depending on disabled state. */ |
| 252 | // This method is only used by `MatLegacyOption`. Keeping it here to avoid breaking the types. |
no test coverage detected