fix: #7360 - Select: style error when resize window

pull/7362/head
Reddy Uppathi 2025-03-04 01:15:11 +05:30
parent b51eca6679
commit cc7ccb8495
1 changed files with 6 additions and 2 deletions

View File

@ -723,9 +723,11 @@ export default {
if (this.appendTo === 'self') { if (this.appendTo === 'self') {
relativePosition(this.overlay, this.$el); relativePosition(this.overlay, this.$el);
} else { } else {
if(this.overlay) {
this.overlay.style.minWidth = getOuterWidth(this.$el) + 'px'; this.overlay.style.minWidth = getOuterWidth(this.$el) + 'px';
absolutePosition(this.overlay, this.$el); absolutePosition(this.overlay, this.$el);
} }
}
}, },
bindOutsideClickListener() { bindOutsideClickListener() {
if (!this.outsideClickListener) { if (!this.outsideClickListener) {
@ -806,6 +808,8 @@ export default {
this.queryOrientation = query; this.queryOrientation = query;
this.matchMediaOrientationListener = () => { this.matchMediaOrientationListener = () => {
console.log('kkkkk');
this.alignOverlay(); this.alignOverlay();
}; };