From 142e617b25bd679cc77a608fe9d0d06e206a1af7 Mon Sep 17 00:00:00 2001 From: Jemika Negara <42384614+jemikanegara@users.noreply.github.com> Date: Thu, 18 Apr 2024 11:56:04 +0800 Subject: [PATCH] Update index.js --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 8583bd3..4c95cde 100644 --- a/index.js +++ b/index.js @@ -1062,7 +1062,9 @@ async function createLanguageSelect(apiKey, optsArgs = {}) { }); if (!initializedSelectorByUser) weploySwitcher.appendChild(details); - autoPosition(); + setTimeout(() => { + autoPosition(); + }, 1000); } }); }