other
/
mew-iview
Toggle navigation
Sign in
Sign in
Project
Files
Commits
Network
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Download as
Email Patches
Plain Diff
Browse Code ยป
Commit
9e375e67126afe26e43170c2472b8326918d1810
Authored by
Sergio Crisostomo
2018-06-04 09:52:20 +0200
1 parent
ed4bb143
Focus only if component has input (3769)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/date-picker/picker.vue
Inline
Side-by-side
src/components/date-picker/picker.vue
Wrap text
Show/Hide comments
View file @
9e375e6
...
...
@@ -668,7 +668,7 @@
668
668
this.reset();
669
669
},
670
670
focus() {
671
- this.$refs.input
.focus();
671
+ this.$refs.input
&& this.$refs.input
.focus();
672
672
}
673
673
},
674
674
watch: {
...
...