From 0f3a12ba1093da1db4437b420c896d760c8ac8b0 Mon Sep 17 00:00:00 2001 From: WINKLER Fabien Date: Thu, 5 Jan 2023 16:56:54 +0100 Subject: [PATCH] fix: const reasigned --- src/plugins/auto_position/plugin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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),