Skip to content

Conversation

@chdanielmueller
Copy link
Contributor

closes #19299

Before

image

After

image

Summary

This pull request introduces an enhancement to the Select component to improve how the input wrapper's filled state is determined. The main change is the addition of logic to check for null or undefined options, ensuring that the component visually reflects its state more accurately.

Enhancement to input wrapper filled state:

  • Added a new computed property hasNullOrUndefinedOption in select.ts that checks if any option value is null or undefined.
  • Updated the p-inputwrapper-filled class logic in selectstyle.ts to also consider the presence of a placeholder or any null/undefined options, making the filled state more robust.
Updates the 'p-inputwrapper-filled' class logic to apply when either the input is filled or a placeholder is present. This ensures correct styling when a placeholder is used.
Introduces a computed property to detect if any option value is null or undefined in the Select component. Updates styling logic to consider this state for the 'p-inputwrapper-filled' class.
@vercel
Copy link

vercel bot commented Jan 19, 2026

@chdanielmueller is attempting to deploy a commit to the cetincakiroglu's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant