Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(form): Add a placeholder for Select fields #679

Merged
merged 1 commit into from
Jan 19, 2024

Conversation

lordrip
Copy link
Member

@lordrip lordrip commented Jan 19, 2024

Currently, there's no placeholder for the SelectField.

This commit updates @kaoto-next/uniforms-patternfly to version ^0.5.7 to be able to import the typings for the SelectField component and create a wrapper that sets a default placeholder.

Before

image

After

image

fix: #676

Currently, there's no placeholder for the `SelectField`.

This commit updates `@kaoto-next/uniforms-patternfly` to version `^0.5.7` to be able
to import the typings for the `SelectField` component and create a
wrapper that sets a default placeholder.

fix: KaotoIO#676
@lordrip lordrip force-pushed the fix/placeholder-for-select branch from d5060d0 to a93b04e Compare January 19, 2024 11:39

export const CustomSelectField: FunctionComponent<SelectFieldProps> = (props) => {
return <SelectField {...(props as SelectFieldProps)} placeholder="Please select an option..." />;
};
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrapper for the CustomSelectField so we could add an additional property placeholder

@lordrip lordrip merged commit 9259bc8 into KaotoIO:main Jan 19, 2024
10 checks passed
@lordrip lordrip deleted the fix/placeholder-for-select branch January 19, 2024 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drop down fields should contain an empty entry always
2 participants