playcanvas / pcui

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

Panel component onClickRemove function #298

Closed ellthompson closed 1 year ago

ellthompson commented 1 year ago

The onClickRemove function cannot be correctly overridden when set as an arrow function. This PR reverts that change for this specific function which has been overridden in multiple places in the PlayCanvas editor.

Resolves an issue reported on the PlayCanvas forum: https://forum.playcanvas.com/t/deleting-slot-does-not-work-in-audio-component-editor/29425/4