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 Listbox and Switch v-model typescript error #459

Closed
wants to merge 16 commits into from
Closed

fix Listbox and Switch v-model typescript error #459

wants to merge 16 commits into from

Conversation

ananni13
Copy link
Contributor

@ananni13 ananni13 commented Apr 27, 2021

Fixes #368
Fixes #457

Removed default prop values for Listbox modelValue and ListboxOption value.
RadioGroup and RadioGroupOption are already written like this and don't cause any typescript errors.

I also included the Switch fix mentioned here: #368 (comment)

shuvroroy and others added 16 commits April 20, 2021 14:58
* Better vue link

* add better React link

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
* enable NoScroll feature for the initial useFocusTrap hook

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

Fixes: #345

* update changelog
…)"

This reverts commit 19590b0.

Solution is not 100% correct, so will revert for now!
* make search case insensitive for the listbox

* make search case insensitive for the menu
* 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
Match RadioGroupOption value types to match modelValue allowed types for RadioGroup
* chore(CI): update main workflow

* Update main.yml
* re-export the `screen` utility for quick debugging purposes

* stop event propagation when clicking inside a Dialog

Fixes: #414
* Make sure that `Escape` only closes the top most Dialog

* update changelog
* add defaultOpen prop to Disclosure component

* update changelog
@vercel
Copy link

vercel bot commented Apr 27, 2021

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

A member of the Team first needs to authorize it.

RobinMalfait added a commit that referenced this pull request Apr 28, 2021
Fixes: #368
Fixes: #457
Closes: #459
RobinMalfait added a commit that referenced this pull request Apr 28, 2021
Fixes: #368
Fixes: #457
Closes: #459
RobinMalfait added a commit that referenced this pull request Apr 28, 2021
* fix v-model typescript error

* update changelog

Fixes: #368
Fixes: #457
Closes: #459

Co-authored-by: Andrea Nanni <andrea.nanni3@gmail.com>
@RobinMalfait
Copy link
Collaborator

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

I also rebased and updated the changelog, I created a new PR for this but referenced your original commit so that you are still a contributor. Thank you!

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

6 participants