Skip to content

Commit

Permalink
added functionality to plus button
Browse files Browse the repository at this point in the history
  • Loading branch information
markellekelly committed Dec 6, 2019
1 parent 5d6177d commit 95a246d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/celltags/src/addwidget.ts
Expand Up @@ -100,6 +100,11 @@ export class AddWidget extends Widget {
this.editing = true;
this.input.value = '';
this.input.focus();
} else if (event.target !== this.input) {
let value = this.input.value;
(this.parent as TagTool).addTag(value);
this.input.blur();
this._evtBlur();
}
event.preventDefault();
}
Expand Down

0 comments on commit 95a246d

Please sign in to comment.