playcanvas / pcui

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

NumericInput keydown / change events fix #277

Closed ellthompson closed 1 year ago

ellthompson commented 1 year ago

It's not possible to access overridden functions in a super class' constructor. This PR instead leaves the adding of the overridden event listeners to the NumericInput's constructor when the TextInput is being extended.

Note that this is a temporary fix until this issue is fixed in 4.0.0.