Fixed #3479 - CascadeSelect: "TypeError: Cannot set properties of undefined (setting 'minWidth')" when using appendTo=body
parent
ffae2d4131
commit
4090ecf803
|
@ -180,7 +180,7 @@ export default {
|
||||||
alignOverlay() {
|
alignOverlay() {
|
||||||
if (this.appendTo) {
|
if (this.appendTo) {
|
||||||
DomHandler.absolutePosition(this.$refs.overlay, this.$el);
|
DomHandler.absolutePosition(this.$refs.overlay, this.$el);
|
||||||
this.$refs.le.minWidth = DomHandler.getOuterWidth(this.$el) + 'px';
|
this.$refs.overlay.style.minWidth = DomHandler.getOuterWidth(this.$el) + 'px';
|
||||||
} else {
|
} else {
|
||||||
DomHandler.relativePosition(this.$refs.overlay, this.$el);
|
DomHandler.relativePosition(this.$refs.overlay, this.$el);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue