playcanvas / pcui

UI component library for web-based tools
http://playcanvas.github.io/pcui
MIT License
664 stars 62 forks source link

ArrayInput linking fix #308

Closed ellthompson closed 1 year ago

ellthompson commented 1 year ago

The ArrayInput does not currently link and unlink the elements it contains. The linking of elements is currently left until the ArrayInput value is set, however this linking is skipped when the value hasn't changed. It should not be required to update the input value in order to link to another set of observers. This PR addresses this by explicitly linking all ArrayInput elements when it has been linked itself.

Fixes https://github.com/playcanvas/editor/issues/1002