#821·walk

[ComboBox]OnCurrentIndexChanged:连续触发三次

作者: speauty创建于 2023年3月26日更新于 2023年3月26日

Recently, I encountered a small problem when using the ComboBox component. Because I needed to get the currently selected item, I registered the OnCurrentIndexChanged function. However, the actual situation and the expected situation are slightly different. The function was triggered three times in a row, is it because some properties were not set correctly? The relevant source code is as follows: