Skip to content

Commit 9acf56a

Browse files
committed
Focus and Blur methods
1 parent a63d0a2 commit 9acf56a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/elements/Input.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,13 @@ export default {
147147
}
148148
149149
return classes;
150-
}
150+
},
151+
blur() {
152+
this.$refs.input.blur()
153+
},
154+
focus() {
155+
this.$refs.input.focus()
156+
},
151157
}
152158
}
153159
</script>

0 commit comments

Comments
 (0)