diff --git a/package-lock.json b/package-lock.json index fd9817c6..9922c017 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@playcanvas/pcui", - "version": "4.1.0", + "version": "4.1.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@playcanvas/pcui", - "version": "4.1.0", + "version": "4.1.1", "license": "MIT", "dependencies": { "@playcanvas/observer": "^1.3.6" diff --git a/package.json b/package.json index 078ae8cd..f7b377e1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@playcanvas/pcui", - "version": "4.1.0", + "version": "4.1.1", "author": "PlayCanvas ", "homepage": "https://playcanvas.github.io/pcui", "description": "User interface component library for the web", diff --git a/src/components/ArrayInput/index.ts b/src/components/ArrayInput/index.ts index 29bfed7c..009652bd 100644 --- a/src/components/ArrayInput/index.ts +++ b/src/components/ArrayInput/index.ts @@ -395,7 +395,7 @@ class ArrayInput extends Element implements IFocusable, IBindable { if (array && array.length > index) { if (this._valueType === 'curveset') { // curveset is passing the value in an array - array[index] = value ? value[0] : value; + array[index] = Array.isArray(value) ? value[0] : value; } else { array[index] = value; }