atinc/ngx-tethys

thyEnter can't preventDefault

Closed this issue · 0 comments

when I use thyEnter on textarea,I can't creat newline in textarea
template.html
<textarea class="thy-group-card-add-name form-control" (thyEnter)="addTask($event)" #taskTitleInput name="taskTitle" [(ngModel)]="task.title" [thyAutofocus]="true"></textarea>
*.ts
addTask($event: Event | KeyboardEvent) { if ($event instanceof KeyboardEvent && $event.shiftKey) { return true; }