Selectfield problem in Safari
Hey guys , i have a problem using safari in my toddle project . i populate a selectfield with options from a api call (works ) then i "set " the value based on another api call - this works in chrome very well , but doesent set the value using safari . i allready tried to prevent the default styling of select elements in safari , but it doesent change that strange behavior . any ideas ? By set I assume you mean set the selected value If so , using the selected attribute should work on all browsers It is used to set a default option when the element loads but it doesn ’t change when the user selects an option So if you want to update the selected value , you use a custom action to update the select element to show the option with the value that you want Does that make sense thank you very much @Lucas G That would be my assumption function resetSelect (args) {
let selectElement = document.getElementById(args.elementID);
selectElement.value = args.value ?? "";
}