diff --git a/packages/primevue/src/select/Select.vue b/packages/primevue/src/select/Select.vue index 63c26a66f..f99e6943b 100755 --- a/packages/primevue/src/select/Select.vue +++ b/packages/primevue/src/select/Select.vue @@ -723,8 +723,10 @@ export default { if (this.appendTo === 'self') { relativePosition(this.overlay, this.$el); } else { - this.overlay.style.minWidth = getOuterWidth(this.$el) + 'px'; - absolutePosition(this.overlay, this.$el); + if(this.overlay) { + this.overlay.style.minWidth = getOuterWidth(this.$el) + 'px'; + absolutePosition(this.overlay, this.$el); + } } }, bindOutsideClickListener() { @@ -806,6 +808,8 @@ export default { this.queryOrientation = query; this.matchMediaOrientationListener = () => { + console.log('kkkkk'); + this.alignOverlay(); };