Default to width: auto instead of width: 0px when styling select2-container
@@ -1033,7 +1033,7 @@
return matches[1];
}
- return this.opts.element.width() + 'px';
+ return (this.opts.element.width() === 0 ? 'auto' : this.opts.element.width() + 'px');
});