submit tx on blur

This commit is contained in:
Patrick Nagurny
2019-06-11 17:15:21 -04:00
parent b9a1f35c7c
commit 184a9a4c09
4 changed files with 41 additions and 17 deletions

View File

@@ -15,6 +15,7 @@ export class Autocomplete {
@Input() item: TxItem;
@Input() accountId: string;
@Output() tx = new EventEmitter<Transaction>();
@Output() interact = new EventEmitter<any>();
public visible: boolean;
public txs$: Observable<Transaction[]>;
@@ -65,4 +66,10 @@ export class Autocomplete {
this.visible = false;
}
preventBlur() {
// used to notify parent that autocomplete has been interacted with and
// that it should not try to do any onBlur() stuff
this.interact.emit(true);
}
}