playcanvas / pcui

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

Creating an `ArrayInput` without specifying the `type` option throws an exception #223

Closed willeastcott closed 1 year ago

willeastcott commented 1 year ago

Describe the bug If you create an ArrayInput instance without specifying the type option throws an exception

To Reproduce Steps to reproduce the behavior:

  1. Create a 'default' ArrayInput instance. e.g. new ArrayInput()
  2. Change the array size to something non-zero

Expected behavior ArrayInput instance defaults to some specific type and resizes correctly.

Screenshots Instead, the array doesn't resize and exception is thrown:

image