We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c41244a commit 228ebeaCopy full SHA for 228ebea
1 file changed
lib/src/core-dropdown/core-dropdown.html
@@ -183,13 +183,16 @@
183
resetTargetDimensions: function() {
184
var dims = this.dimensions;
185
var style = this.target.style;
186
- if (dims.position.h_by === this.localName) {
187
- style[dims.position.h] = null;
188
- dims.position.h_by = null;
189
- }
190
- if (dims.position.v_by === this.localName) {
191
- style[dims.position.v] = null;
192
- dims.position.v_by = null;
+ // Dims may be not define
+ if(dims) {
+ if (dims.position.h_by === this.localName) {
+ style[dims.position.h] = null;
+ dims.position.h_by = null;
+ }
+ if (dims.position.v_by === this.localName) {
193
+ style[dims.position.v] = null;
194
+ dims.position.v_by = null;
195
196
}
197
this.super();
198
},
0 commit comments