Skip to content

Commit 757063d

Browse files
committed
fix(Help): Properly trigger help for text input
Signed-off-by: Brianna Major <brianna.major@kitware.com>
1 parent c115d6b commit 757063d

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)