Skip to content

Commit db7105d

Browse files
committed
coerce: allow arrayOk and valType: 'any'
* This change is needed so that the attribute `base` in bar traces can accept `number` and `Date` values.
1 parent c3638a6 commit db7105d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/coerce.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ exports.valObjects = {
228228
any: {
229229
description: 'Any type.',
230230
requiredOpts: [],
231-
otherOpts: ['dflt', 'values'],
231+
otherOpts: ['dflt', 'values', 'arrayOk'],
232232
coerceFunction: function(v, propOut, dflt) {
233233
if(v === undefined) propOut.set(dflt);
234234
else propOut.set(v);

0 commit comments

Comments
 (0)