If values is an object, defaultValue currently also has to be a number but it should possible to pass the object key in.