A bug in Shopify's Checkout UI extensions where the DateField component's disabled property was not disabled even when set to true

A bug in Shopify’s Checkout UI extensions where the DateField component’s disabled property was not disabled even when set to true.

The following document states that you can disable the form by setting the disabled property to true, but in reality, setting it to true does nothing and the form simply functions as normal. There is a discrepancy between the content of the document and the actual behavior of the component. This is clearly a bug in the library.

function Extension() {
  return <DateField label="Select a date" disabled={true} />;
}

Hi @masa

I believe how you’ve implemented this component should result in the DateField being fully disabled. Have connected with our internal team for clarification.

Hi again @masa

It does look like this is a bug on our side - I’ll update here once this is resolved.

Hi again @masa

We recently shipped an update for this - can you check if you’re still seeing this issue on your side?

Hi.

I’ve confirmed that it’s fixed. Thanks.