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(number-input): uses props of wrapping form-control #2217

Merged
merged 7 commits into from Nov 28, 2020

Conversation

silltho
Copy link
Contributor

@silltho silltho commented Oct 11, 2020

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes
    /start features)

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Fixes: #804

What is the new behavior?

FormControl propagates props down to NumberInput children.

Does this introduce a breaking change?

  • Yes
  • No

Other information

I couldn't find any tests between FormControl and Select. So do i have to test the composition between FormControl and NumberInput?

@vercel
Copy link

vercel bot commented Oct 11, 2020

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

🔍 Inspect: https://vercel.com/chakra-ui/chakra-ui/qerdl788m
✅ Preview: https://chakra-ui-git-feat-number-input.chakra-ui.now.sh

@silltho
Copy link
Contributor Author

silltho commented Oct 19, 2020

anything i can do to get this merged ?

@ljosberinn
Copy link
Contributor

@silltho sorry we've been quite busy, I personally haven't taken a look but we'll get to it shortly :)

@silltho
Copy link
Contributor Author

silltho commented Oct 26, 2020

Ok it's now been open for over 2 weeks. I know you guys are having a lot of work but still that's not developer friendly. A lot of other PRs being merged during this time and this is a really small one. However I keep this PR open but will not be available for doing any merge/rebase or change.

@changeset-bot
Copy link

changeset-bot bot commented Nov 28, 2020

🦋 Changeset detected

Latest commit: 9337691

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

This PR includes changesets to release 9 packages
Name Type
@chakra-ui/number-input Patch
@chakra-ui/docs Patch
@chakra-ui/react Patch
@chakra-ui/test-utils Patch
chakra-cra Patch
chakra-nextjs Patch
chakra-nextjs-ts Patch
@chakra-ui/props-docs 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

@with-heart
Copy link
Contributor

@silltho You're absolutely right. Allowing a PR from the community to sit for so long without being reviewed or merged is something I consider to be a failure on our part. We were dealing with 1.0 focus, multiple team members being rather busy at work, and speaking for myself quite a bit of burnout, but those aren't good excuses when other work was still being merged. We will do better in the future.

In the meantime, I rebased this PR with changes from develop, cleaned up the merging of props from useFormControl, and added a test for use of NumberInput with a wrapping FormControl. If a reviewer could please give this a look, I think it'd be great to get this merged.

@allcontributors please add @silltho for code

@allcontributors
Copy link
Contributor

@with-heart

I've put up a pull request to add @silltho! 🎉

Copy link
Contributor

@TimKolberger TimKolberger left a comment

Choose a reason for hiding this comment

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

Looks good to me! Love the clean prop getter function 💖

@with-heart with-heart merged commit e6393c2 into chakra-ui:develop Nov 28, 2020
@github-actions github-actions bot mentioned this pull request Dec 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature 🚀 Issue or PR that adds a feature or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Let the NumberInput component get properties from the surrounding FormControl
4 participants