NaughtyAttributes icon indicating copy to clipboard operation
NaughtyAttributes copied to clipboard

[Bug] OnValueChanged with Arrays/Lists.

Open Gohloum opened this issue 2 years ago • 1 comments

When using [OnValueChanged("callbackName")] with an array or list, adding or removing elements will trigger the OnValueChanged. However re-arranging the existing items in a list is ignored. I would think this action should also fire the OnValueChanged. If not, can you please add it as a feature?

Thank you!

Gohloum avatar Jan 18 '23 16:01 Gohloum

Also, I just noticed changing the value of an element in a list does not fire the OnValueChanged either. So it would seem that the only event that fires it is when the length of the array or list changes.

Gohloum avatar Jan 18 '23 18:01 Gohloum