mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Refactored #150
This commit is contained in:
parent
ba4121afae
commit
0cebea6aed
6 changed files with 37 additions and 8 deletions
|
@ -124,12 +124,12 @@ export default {
|
|||
return selectedOptionIndex;
|
||||
},
|
||||
show() {
|
||||
this.$emit('before-show');
|
||||
this.overlayVisible = true;
|
||||
this.$emit('show');
|
||||
},
|
||||
hide() {
|
||||
this.$emit('before-hide');
|
||||
this.overlayVisible = false;
|
||||
this.$emit('hide');
|
||||
},
|
||||
onFocus() {
|
||||
this.focused = true;
|
||||
|
@ -291,9 +291,12 @@ export default {
|
|||
if (this.filter) {
|
||||
this.$refs.filterInput.focus();
|
||||
}
|
||||
|
||||
this.$emit('show');
|
||||
},
|
||||
onOverlayLeave() {
|
||||
this.unbindOutsideClickListener();
|
||||
this.$emit('hide');
|
||||
},
|
||||
alignOverlay() {
|
||||
if (this.appendTo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue