Skip to content

Commit 7c31f66

Browse files
authored
Merge pull request #64 from bnmajor/fix-input-help
Display help for text input
2 parents c115d6b + 757063d commit 7c31f66

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

src/components/properties/CellProperty/InputCell/script.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ export default {
3636
},
3737
},
3838
methods: {
39+
inputFocused() {
40+
this.$emit('focused');
41+
},
42+
inputBlurred() {
43+
this.$emit('blurred');
44+
},
3945
onChange(value) {
4046
this.editing = true;
4147

src/components/properties/CellProperty/InputCell/template.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
:readonly="domain && domain.readOnly"
55
:error="error"
66
@input="onChange"
7-
@blur="editing = false"
7+
@blur="inputBlurred()"
8+
@focus="inputFocused()"
89
/>

src/components/properties/CellProperty/template.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@
3636
:domain="prop.ui && prop.ui.domain"
3737
:type="prop.ui && prop.ui.type"
3838
@input="onChange(arguments[0], i-1)"
39+
v-on:focused="help = true"
40+
v-on:blurred="editing = help = false"
3941
/>
4042
</v-flex>
4143
<v-flex

0 commit comments

Comments
 (0)