-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
[Bug Report] Error when using a RegExp in group property of v-list-group #7812
Comments
I don't have a lot of experience with the code base, but do you guys think that if we update the group prop on the VListGroup.ts file it will fix this? Now it takes a String and my proposal is to change it to receibe both Strings and RegExp. Already checked where the 'group' prop is used and seems to be on a single validation in the 'matchRoute' method of the same file. Since it is matching the route to the group prop, I think it will do the same job if it was a RegExp. |
Yeah, I looked at it before and I think that this is valid solution |
Nice. I'll make a PR |
I'm having a problem here. When I changed the group prop from Already runned all the test and linting suites, and everything was fine. Can someone explain this to me? Should I commit this anyway because it's just a bug with my VSCode? |
@jacekkarczmarczyk do you have any clues about this? |
not really, it's working for me (both in vscode 1.36.1 and in yarn lint) |
why this hasnt fixed ? |
Versions and Environment
Vuetify: 1.5.16
Vue: 2.6.10
Browsers: Chrome 75.0.3770.100
OS: Mac OS 10.14.5
Steps to reproduce
https://codepen.io/anon/pen/WqWxvE?editors=1111
Expected Behavior
group property in v-list-groups accepts RegExp, as stated in the docs.
Actual Behavior
Invalid prop: type check failed for prop "group". Expected String with value "/foo/g", got RegExp
Reproduction Link
https://codepen.io/anon/pen/WqWxvE?editors=1111
Other comments
This used to work, but I can't figure out in which Vuetify version
The text was updated successfully, but these errors were encountered: