Skip to content
Snippets Groups Projects
Commit 41f40153 authored by FurWaz's avatar FurWaz
Browse files

Cleared popup inputs on validate

parent 4eb347a9
Branches
No related tags found
No related merge requests found
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
style="max-height: 0px;" style="max-height: 0px;"
/> />
<div <div
id="inputs-div"
ref="inputs" ref="inputs"
class="flex flex-col overflow-auto" class="flex flex-col overflow-auto"
> >
...@@ -215,10 +216,16 @@ export default { ...@@ -215,10 +216,16 @@ export default {
setTitle(title) { setTitle(title) {
this.m_title = title; this.m_title = title;
}, },
clearInputs() {
const inputsContainer = this.$el.querySelector("#inputs-div")
const inputs = inputsContainer.querySelectorAll("input");
inputs.forEach(i => { i.value = ''; });
},
execOnValidate() { execOnValidate() {
executeAfter( executeAfter(
this.validate?.(this), this.validate?.(this),
res => { res => {
this.clearInputs();
if (res) this.hide(); if (res) this.hide();
} }
); );
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment