Domain object properties validation not working always (#4893)

* Domain object properties validation not working always #4849

* stub of a test

* set local execution to chrome

* skip visual test

* use input event for changes and throttle update.

* moved file to correct location

* fixed e2e tests.

Co-authored-by: unlikelyzero <jchill2@gmail.com>
Co-authored-by: John Hill <john.c.hill@nasa.gov>
This commit is contained in:
Nikhil
2022-03-16 14:53:58 -07:00
committed by GitHub
parent 67234c70a4
commit 482d8f392c
6 changed files with 205 additions and 7 deletions

View File

@ -30,13 +30,15 @@
:min="model.min"
:max="model.max"
:step="model.step"
@blur="blur()"
@input="updateText()"
>
</span>
</span>
</template>
<script>
import { throttle } from 'lodash';
export default {
props: {
model: {
@ -49,8 +51,12 @@ export default {
field: this.model.value
};
},
mounted() {
this.updateText = throttle(this.updateText.bind(this), 200);
},
methods: {
blur() {
updateText() {
console.log('updateText', this.field);
const data = {
model: this.model,
value: this.field

View File

@ -28,7 +28,7 @@
<textarea v-model="field"
type="text"
:size="model.size"
@blur="blur()"
@input="updateText()"
>
</textarea>
</span>
@ -36,6 +36,8 @@
</template>
<script>
import { throttle } from 'lodash';
export default {
props: {
model: {
@ -48,8 +50,11 @@ export default {
field: this.model.value
};
},
mounted() {
this.updateText = throttle(this.updateText.bind(this), 500);
},
methods: {
blur() {
updateText() {
const data = {
model: this.model,
value: this.field

View File

@ -28,13 +28,15 @@
<input v-model="field"
type="text"
:size="model.size"
@blur="blur()"
@input="updateText()"
>
</span>
</span>
</template>
<script>
import { throttle } from 'lodash';
export default {
props: {
model: {
@ -47,8 +49,11 @@ export default {
field: this.model.value
};
},
mounted() {
this.updateText = throttle(this.updateText.bind(this), 500);
},
methods: {
blur() {
updateText() {
const data = {
model: this.model,
value: this.field