You've already forked openaccounting-web
mirror of
https://github.com/openaccounting/oa-web.git
synced 2025-12-10 03:10:41 +13:00
submit tx on blur
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user