close autosuggestion on focus lost
This commit is contained in:
parent
1eaafb12a9
commit
80238b0e1f
|
@ -10,7 +10,8 @@
|
|||
class="form-control form-control-sm status-form__status flexcroll" rows="5" required title="content"
|
||||
placeholder="What's in your mind?"
|
||||
(keydown.control.enter)="onCtrlEnter()"
|
||||
(keydown)="handleKeyDown($event)"></textarea>
|
||||
(keydown)="handleKeyDown($event)"
|
||||
(blur)="statusTextEditorLostFocus()"></textarea>
|
||||
|
||||
<app-autosuggest class="status-form__autosuggest" *ngIf="autosuggestData"
|
||||
[pattern]="autosuggestData"
|
||||
|
|
|
@ -510,4 +510,10 @@ export class CreateStatusComponent implements OnInit, OnDestroy {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
statusTextEditorLostFocus(): boolean {
|
||||
this.autosuggestData = null;
|
||||
this.hasSuggestions = false;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue