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

Deduce select type from component prop for select-multiple #793

Merged
merged 3 commits into from
May 13, 2020

Conversation

erikras
Copy link
Member

@erikras erikras commented May 13, 2020

Previously <Field component="select" multiple> would generate an error claiming it needs a type="select" prop. This was wrong, as we can just see if component === 'select' to know.

@codecov
Copy link

codecov bot commented May 13, 2020

Codecov Report

Merging #793 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##            master      #793   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           17        17           
  Lines          253       253           
  Branches        59        59           
=========================================
  Hits           253       253           
Impacted Files Coverage Δ
src/useField.js 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 573e414...0499a28. Read the comment docs.

@codesandbox-ci
Copy link

codesandbox-ci bot commented May 13, 2020

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 0499a28:

Sandbox Source
hungry-sun-6ys4w Configuration
kind-surf-5bw6m Configuration
young-resonance-2rdyq Configuration
xenodochial-smoke-phk53 Configuration
snowy-leftpad-xoy7b Configuration

@erikras erikras merged commit 885f98a into master May 13, 2020
@erikras erikras deleted the deduce-select-type branch May 13, 2020 11:52
@erikras
Copy link
Member Author

erikras commented May 27, 2020

Published in v6.5.0.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant