Replies: 3 comments
-
|
Hello. Hm, yeah, changing value from the change event is not something I have really considered before. It sounds like one of those things where it is easy to end up in an infinite loop. But, I guess it should work, do you know whether this works in web browsers? Looking at the code, I see that we are locking the selection while changing the value. So it is possible that the value attribute changes but not the selected index. By the way, you can also just set the |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your insight into this. At least querying GetValue right after doing SetValue returns the correct value while still in the ProcessEvent function. So i think your assessment is correct. |
Beta Was this translation helpful? Give feedback.
-
|
So, if you want to update the selection box to a different option during the change event in RmlUi, then probably would result in something this: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the intended way to change a select value change event? I have set up test code with several options and a event handler registered like this:
But i can still select any option in the drop down and it does not get set to the "blue" value. At least visually the select still allows selecting any of the other drop down options.
Beta Was this translation helpful? Give feedback.
All reactions