Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(plugin-ecommerce): priceInput does not respect required field status#15783

Open
jhb-dev wants to merge 1 commit intopayloadcms:mainfrom
jhb-dev:fix/plugin-ecommerce-price-input-required
Open

fix(plugin-ecommerce): priceInput does not respect required field status#15783
jhb-dev wants to merge 1 commit intopayloadcms:mainfrom
jhb-dev:fix/plugin-ecommerce-price-input-required

Conversation

@jhb-dev
Copy link
Contributor

@jhb-dev jhb-dev commented Feb 27, 2026

What?

The PriceInput component in @payloadcms/plugin-ecommerce does not show the required indicator (asterisk) on the field label when the field is configured with required: true.

Why?

PriceInput receives the full field object (which includes required), but never passes it down to FormattedInput. FormattedInput in turn doesn't accept or forward a required prop to FieldLabel.

How?

  • Pass field.required from PriceInput to FormattedInput
  • Add required to the FormattedInput props interface
  • Forward required to the FieldLabel component

@jhb-dev jhb-dev changed the title fix(plugin-ecommerce): PriceInput does not respect required field status fix(plugin-ecommerce): priceInput does not respect required field status Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant