We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 135c28c commit fc4b6d5Copy full SHA for fc4b6d5
src/components/input/MdInput.vue
@@ -31,6 +31,7 @@ import { random, isBlank } from 'ph-utils';
31
const el = ref<HTMLInputElement>();
32
33
const modelValue = defineModel<string | number>();
34
+const emits = defineEmits(['focus', 'blur']);
35
36
const focused = ref(false);
37
@@ -63,10 +64,12 @@ function focus() {
63
64
65
function handleInputFocus() {
66
focused.value = true;
67
+ emits('focus');
68
}
69
70
function handleInputBlur() {
71
focused.value = false;
72
+ emits('blur');
73
74
75
const hasValue = computed(() => {
0 commit comments