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

Match RadioGroupOption types to RadioGroup in radio-group.ts #400

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

shoeyn
Copy link
Contributor

@shoeyn shoeyn commented Apr 19, 2021

Regarding Vue implementation

RadioGroup modelValue is set to

modelValue: { type: [Object, String, Number, Boolean] },

But RadioGroupOption value is set to

value: { type: [Object, String] },

So this is just a simple tweak to RadioGroupOption value types to match modelValue allowed types for RadioGroup to stop prop types warning when using Number or Boolean

Match RadioGroupOption value types to match modelValue allowed types for RadioGroup
@vercel
Copy link

vercel bot commented Apr 19, 2021

@shoeyn is attempting to deploy a commit to the Tailwind Labs Team on Vercel.

A member of the Team first needs to authorize it.

@shoeyn shoeyn changed the title Update radio-group.ts Match RadioGroupOption types to RadioGroup in radio-group.ts Apr 19, 2021
@RobinMalfait
Copy link
Collaborator

Hey! Thank you for your PR!
Much appreciated! 🙏

That makes sense, thanks!

@RobinMalfait RobinMalfait merged commit 0e0c021 into tailwindlabs:develop Apr 19, 2021
@shoeyn shoeyn deleted the patch-1 branch April 19, 2021 14:02
RobinMalfait pushed a commit that referenced this pull request Apr 19, 2021
Match RadioGroupOption value types to match modelValue allowed types for RadioGroup
RobinMalfait pushed a commit that referenced this pull request Apr 20, 2021
Match RadioGroupOption value types to match modelValue allowed types for RadioGroup
RobinMalfait added a commit that referenced this pull request Apr 26, 2021
* Fixed typos (#350)

* chore: Fix typo in render.ts (#347)

* Better vue link (#353)

* Better vue link

* add better React link

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>

* Enable NoScroll feature for the initial useFocusTrap hook (#356)

* enable NoScroll feature for the initial useFocusTrap hook

Once you are using Tab and Shift+Tab it does the scrolling.

Fixes: #345

* update changelog

* Revert "Enable NoScroll feature for the initial useFocusTrap hook (#356)"

This reverts commit 19590b0.

Solution is not 100% correct, so will revert for now!

* Improve search (#385)

* make search case insensitive for the listbox

* make search case insensitive for the menu

* update changelog

* add `disabled` prop to RadioGroup and RadioGroup Option (#401)

* add `disabled` prop to RadioGroup and RadioGroup Option

Also did some general cleanup which in turn fixed an issue where the
RadioGroup is unreachable when a value is used that doesn't exist in the
list of options.

Fixes: #378

* update changelog

* Fix type of `RadioGroupOption` (#400)

Match RadioGroupOption value types to match modelValue allowed types for RadioGroup

* update changelog

* fix typo's

* chore(CI): update main workflow (#395)

* chore(CI): update main workflow

* Update main.yml

* fix dialog event propagation (#422)

* re-export the `screen` utility for quick debugging purposes

* stop event propagation when clicking inside a Dialog

Fixes: #414

* improve dialog escape (#430)

* Make sure that `Escape` only closes the top most Dialog

* update changelog

* add defaultOpen prop to Disclosure component (#447)

* add defaultOpen prop to Disclosure component

* update changelog

Co-authored-by: Shuvro Roy <shuvro.roy@northsouth.edu>
Co-authored-by: Alex Nault <nault.alex@gmail.com>
Co-authored-by: Eugene Kopich <github@web2033.com>
Co-authored-by: Nathan Shoemark <n.shoemark@gmail.com>
Co-authored-by: Michaël De Boey <info@michaeldeboey.be>
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.

None yet

2 participants