We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28a15c9 commit 9fa795eCopy full SHA for 9fa795e
2 files changed
src/components/properties/CellProperty/InputCell/script.js
@@ -27,13 +27,16 @@ export default {
27
return {
28
editing: false,
29
valueRep: this.value,
30
+ error: false,
31
};
32
},
33
methods: {
34
onChange(value) {
35
this.editing = true;
36
37
const isValid = Validate[this.type](value);
38
+ this.error = !isValid;
39
+
40
if (!this.noEmpty && !value && !isValid) {
41
this.$emit('input', undefined);
42
} else if (isValid) {
src/components/properties/CellProperty/InputCell/template.html
@@ -2,6 +2,7 @@
2
:label="label"
3
:value="editing ? valueRep : value"
4
:readonly="domain && domain.readOnly"
5
+ :error="error"
6
@input="onChange"
7
@blur="editing = false"
8
/>
0 commit comments