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

fix(select): prevent deprecation warning about uncontrolled textbox from being fired #6996

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

edleeks87
Copy link
Contributor

fix #6883

Proposed behaviour

Ensures that Textbox used in Select components is used in a controlled manner to prevent the deprecation warnings from being fired. Removes onChange from SelectTextbox interface as we never pass it (handled in the parent Select components). Passes empty function to Textbox to prevent the warning.

Current behaviour

Deprecation warning is fired about uncontrolled textbox when Selects are used

Checklist

  • Commits follow our style guide
  • Related issues linked in commit messages if required
  • Unit tests added or updated if required
  • [s] Typescript d.ts file added or updated if required

QA

  • Tested in provided StackBlitz sandbox/Storybook
  • Add new Playwright test coverage if required
  • Carbon implementation matches Design System/designs
  • UI Tests GitHub check reviewed if required

Additional context

Testing instructions

…rom being fired

Ensures that Textbox used in Select components is used in a controlled manner to prevent the
deprecation warnings from being fired

fix #6883
@Parsium Parsium self-requested a review October 4, 2024 10:46
@Parsium Parsium marked this pull request as ready for review October 4, 2024 13:50
@Parsium Parsium requested a review from a team as a code owner October 4, 2024 13:50
@edleeks87 edleeks87 merged commit 60f2859 into master Oct 7, 2024
24 checks passed
@edleeks87 edleeks87 deleted the FE-6759-select-uncontrolled branch October 7, 2024 15:18
@carbonci
Copy link
Collaborator

carbonci commented Oct 7, 2024

🎉 This PR is included in version 142.13.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

[Select]: deprecation warning fired about using Textbox in an uncontrolled way
5 participants