Finish the minicard editor auto-completion feature

This commit stands on the initial support implemented in #342. We now
avoid error-prone parsing step by adding the member or the label
directly to the card object.

We also added support for `Tab` to completion on our textComplete
component.

Closes #342
This commit is contained in:
Maxime Quandalle 2015-10-31 09:26:55 -07:00
parent 2b134ff7a9
commit 5d77ad4f6b
8 changed files with 118 additions and 97 deletions

View file

@ -5,7 +5,7 @@ BlazeComponent.extendComponent({
editTitle(evt) {
evt.preventDefault();
const newTitle = this.childrenComponents('inlinedForm')[0].getValue().trim();
const newTitle = this.childComponents('inlinedForm')[0].getValue().trim();
const list = this.currentData();
if (newTitle) {
list.rename(newTitle.trim());