All files / app/component/todo/item item.component.html

23.33% Statements 7/30
14.28% Branches 1/7
0% Functions 0/9
28.57% Lines 4/14

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 211x 2x 2x                                 1x  
<div class="todo-item-container row">
  <input #checkbox type="checkbox" [checked]="checked" (input)="toggle()">
  @if (editing) {
    <textarea [value]="text"
              (focusin)="editing = true"
              (input)="text = $any($event).target.value"
              (keydown)="$event.key === 'Enter' && edit() || true"
              (blur)="edit()"
              [appAutofocus]="true"></textarea>
  } @else if (text) {
    <app-md [origin]="origin"
            [plugins]="plugins"
            [text]="text"
            tabindex="0"
            (mouseover)="hovering = true"
            (mouseout)="hovering = false"
            (focus)="editing = !config.mobile && !hovering"
            (click)="editing = true"></app-md>
  }
</div>