From 7f4f376252a15a85a65a7473efee78e29b05c9cf Mon Sep 17 00:00:00 2001 From: Burak Civan Date: Tue, 18 Oct 2022 11:35:25 +0300 Subject: [PATCH] some console errors fixed --- public/css/app.css | 8 ++++---- resources/assets/js/components/AkauntingColor.vue | 6 ++++-- resources/assets/js/plugins/form.js | 4 +++- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/public/css/app.css b/public/css/app.css index 3e9d2d82a..80eaffce3 100644 --- a/public/css/app.css +++ b/public/css/app.css @@ -50031,6 +50031,10 @@ body{ height: 16rem; } + .lg\:h-auto{ + height: auto; + } + .lg\:h-48{ height: 12rem; } @@ -50047,10 +50051,6 @@ body{ height: 3rem; } - .lg\:h-auto{ - height: auto; - } - .lg\:w-9{ width: 2.25rem; } diff --git a/resources/assets/js/components/AkauntingColor.vue b/resources/assets/js/components/AkauntingColor.vue index 17a0ffb5d..8bd0f73ff 100644 --- a/resources/assets/js/components/AkauntingColor.vue +++ b/resources/assets/js/components/AkauntingColor.vue @@ -189,8 +189,10 @@ export default { let el = this.$refs.dropdownMenu; let target = event.target; - if (el !== target && ! el.contains(target)) { - this.isOpen = false; + if (typeof el != "undefined") { + if (el !== target && ! el.contains(target)) { + this.isOpen = false; + } } }, }, diff --git a/resources/assets/js/plugins/form.js b/resources/assets/js/plugins/form.js index 208eb7110..afeb1d75e 100644 --- a/resources/assets/js/plugins/form.js +++ b/resources/assets/js/plugins/form.js @@ -493,7 +493,9 @@ export default class Form { // Form fields check validation issue onFail(error) { - this.errors.record(error.response.data.errors); + if (typeof this.errors != "undefined") { + this.errors.record(error.response.data.errors); + } this.loading = false; }