Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

fix(select): prevent duplicated ID on wrapper + input #490

Merged

Conversation

HerrBertling
Copy link
Contributor

@HerrBertling HerrBertling commented Sep 24, 2021

Description

This prevents a duplicated id on wrapper + input by filtering the attributes passed to the wrapper component
and thus passing the id only to the select itself.

Also adds very basic tests for CSelect and a story for the disabled select field.

Motivation and Context

fixes #484

How Has This Been Tested?

I've added a test to check for the correctly passed id onto the select and not the wrapper :)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

by filtering the attributes passed to the wrapper component
and thus passing the ID only to the select itself.

Also adds very basic tests for CSelect and a story for the
disabled select field.

fixes chakra-ui#484
@changeset-bot
Copy link

changeset-bot bot commented Sep 24, 2021

🦋 Changeset detected

Latest commit: c5fe636

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@chakra-ui/vue Patch
@chakra-ui/nuxt Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Sep 24, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployments, click below or on the icon next to each commit.

chakra-ui-vue – ./

🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui-vue/Gpqg5F8pKmCcEjFbu3Jm596B4iD2
✅ Preview: https://chakra-ui-vue-git-fork-herrbertling-fix-484-c-9ff6dc-chakra-ui.vercel.app

@codesandbox-ci
Copy link

codesandbox-ci bot commented Sep 24, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit c5fe636:

Sandbox Source
Chakra UI Vue (0.X) Starter Template Configuration
chakra-ui-nuxt-demo Configuration

@HerrBertling
Copy link
Contributor Author

What needs to happen here to get this merged, @peoray?

@peoray
Copy link
Contributor

peoray commented Oct 1, 2021

@HerrBertling haven't had the time to take a look. I'll see to that this weekend, hopefully, we have a new release next week. Stay tuned :)

@codebender828 codebender828 self-requested a review October 7, 2021 14:57
codebender828
codebender828 previously approved these changes Oct 7, 2021
Copy link
Collaborator

@codebender828 codebender828 left a comment

Choose a reason for hiding this comment

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

Thank you @HerrBertling! Great PR

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants