Hello.
Any ideas about how I can change the text of the shown dropdown value. I can change the text of the sp-menu-item inside of it, but the selected text won’t update.
Here’s the code that I use to change the text (the first line doesn’t work) …
document.getElementById("dropdown_presets").value = presetname;
document.getElementById("dropdown_presets").selectedOptions[0].innerText = presetname;