Skip to content

Conversation

@pedroanastacio
Copy link
Member

Description

  • rhf-combobox: Adds a prop to the component to work only with lowercase value

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new onlyLowercase prop to the RhfCombobox component that automatically converts all input values to lowercase when enabled.

  • Introduces an onlyLowercase boolean prop (defaults to false) to control lowercase transformation
  • Implements a normalizeValue function to centralize the lowercase conversion logic
  • Ensures all value paths (input changes, value selection, default values, hidden input) consistently apply normalization

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
packages/ui/src/components/RhfCombobox/rhf-combobox.types.tsx Adds the onlyLowercase optional boolean prop to the component's type definition
packages/ui/src/components/RhfCombobox/rhf-combobox.tsx Implements the normalization logic with a memoized normalizeValue callback and applies it to all value handling paths including state initialization, value changes, input changes, and hidden input values
.changeset/shiny-ghosts-argue.md Documents the feature addition for the changelog

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@pedroanastacio pedroanastacio merged commit d272026 into main Jan 7, 2026
1 check passed
@github-actions github-actions bot mentioned this pull request Jan 7, 2026
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.

2 participants