You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I get a TypeError: $field.$output is not a function when running the following example. I find the $field here refers to customer.name, instead of customer.
describe('output goes wrong', () => {
it.only('', () => {
const fields = [
'customer',
'customer.name',
'customerid'
];
const labels = {
'customer': 'Customer',
'customer.name': 'name',
};
const output = {
customer: c => c ? c.id : c
};
const values = {
customer: {
id: 'c-001',
name: 'Allen'
}
}
const $999 = new Form({fields, labels, output, values}, {name: 'Form 999', options:{fallback: false}});
// expect(typeof $999.$('customer.name').$output).to.be.equal('function') // but it is 'string'
$999.values(); // TypeError: $field.$output is not a function
})
});
The text was updated successfully, but these errors were encountered:
Hi,
I get a TypeError: $field.$output is not a function when running the following example. I find the $field here refers to customer.name, instead of customer.
The text was updated successfully, but these errors were encountered: