Closed cmacdonnacha closed 2 years ago
Just found that there is, see https://braintree.github.io/braintree-web/current/HostedFields.html#setAttribute
hostedFieldsInstance?.setAttribute(
{
field: 'number',
attribute: 'disabled',
value: 'true',
},
function (attributeErr: any) {
if (attributeErr) {
console.error(attributeErr);
}
},
);
General information
Issue description
I was wondering if there's a way to disable hosted fields? The reason I'd like to do this is to disable them while my form is being submitted.