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

b-nav-item-dropdown uses "class" as property #310

Closed
rdgout opened this issue May 1, 2017 · 1 comment
Closed

b-nav-item-dropdown uses "class" as property #310

rdgout opened this issue May 1, 2017 · 1 comment

Comments

@rdgout
Copy link

rdgout commented May 1, 2017

Hi,

When I run bootstrap-vue (v0.15) I get a warning in my console telling me:

[Vue warn]: "class" is a reserved attribute and cannot be used as component prop.

found in

---> <BNavItemDropdown>
       <BNav>

And indeed in the code I can see
https://github.com/bootstrap-vue/bootstrap-vue/blob/master/lib/components/nav-item-dropdown.vue

        props: {
            caret: {
                type: Boolean,
                default: true
            },
            class: ['class']
        },

However, vue does not like it when this is used, can this be fixed? The warning does not show on production mode but it's still annoying to get it during development.

@rdgout rdgout changed the title b-nav-item-dropdown uses "class" as prop. b-nav-item-dropdown uses "class" as property May 1, 2017
@tmorehouse
Copy link
Member

actually I am not sure the class prop is even needed after reviewing the code.

@pi0 pi0 closed this as completed in 93c2813 May 1, 2017
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

No branches or pull requests

2 participants