sib-form-placeholder-dropdown : no value on populate unless within a setTimeout()
I have the following function :
function updateThemeImage(e) {
console.log(themeSelect.value);// If a theme selected...
}
sibForm.addEventListener("populate", () => {
setTimeout(updateThemeImage);
});
If I remove the setTimeout()
, themeSelect.value
is always undefined
.
When adding the setTImeout()
, the value
is loaded correctly.