emits updated

pull/2798/head
Tuğçe Küçükoğlu 2022-07-08 13:20:47 +03:00
parent 10e6a902ae
commit 2037485994
1 changed files with 5 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import Portal from 'primevue/portal';
export default { export default {
name: 'CascadeSelect', name: 'CascadeSelect',
emits: ['update:modelValue','change','group-change', 'before-show','before-hide','hide','show'], emits: ['update:modelValue','change','group-change', 'before-show','before-hide','hide','show','focus','blur'],
data() { data() {
return { return {
selectionPath: null, selectionPath: null,
@ -160,11 +160,13 @@ export default {
this.$emit('before-hide'); this.$emit('before-hide');
this.overlayVisible = false; this.overlayVisible = false;
}, },
onFocus() { onFocus(event) {
this.focused = true; this.focused = true;
this.$emit('focus', event);
}, },
onBlur() { onBlur(event) {
this.focused = false; this.focused = false;
this.$emit('blur', event);
}, },
onClick(event) { onClick(event) {
if (this.disabled || this.loading) { if (this.disabled || this.loading) {