diff --git a/src/components/TransactionCreate.vue b/src/components/TransactionCreate.vue index 74f02c0..7a6cf5d 100644 --- a/src/components/TransactionCreate.vue +++ b/src/components/TransactionCreate.vue @@ -432,6 +432,21 @@ export default class TransactionCreate extends Vue { } private validate(): boolean { + const activeElement = document.activeElement + if (activeElement) { + const input = activeElement as HTMLInputElement + if (input.blur) { + input.blur() + } + } + + const el = document.querySelector(':focus') + if (el) { + const input = el as HTMLInputElement + if (input.blur) { + input.blur() + } + } if ( !this.name || !this.amount ||