diff --git a/src/plugins/auto_position/plugin.js b/src/plugins/auto_position/plugin.js index 502bf621e..00bf80693 100644 --- a/src/plugins/auto_position/plugin.js +++ b/src/plugins/auto_position/plugin.js @@ -21,7 +21,7 @@ Selectize.define("auto_position", function () { controlPosBottom - dropdownHeight - wrapperHeight >= 0 ? POSITION.top : POSITION.bottom; - const w = this.$wrapper[0].style.width !== 'fit-content' ? this.settings.dropdownParent === 'body' ? 'max-content' : '100%' : 'max-content'; + let w = this.$wrapper[0].style.width !== 'fit-content' ? this.settings.dropdownParent === 'body' ? 'max-content' : '100%' : 'max-content'; const styles = { width: w, minWidth : $control.outerWidth(true),