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

Alert cannot load b-button-close when imported as an individual component #1522

Closed
mehdirande opened this Issue Jan 10, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@mehdirande
Contributor

mehdirande commented Jan 10, 2018

Hi,

When importing only b-alert, if the dismissed prop is set like this:


<template>
  <b-alert :show="true" :dismissible="true">Message</b-alert>
</template>
<script>
  import bAlert from "bootstrap-vue/es/components/alert/alert";
  export default {
    name: 'Dummy',
    components: {
        bAlert
    }
}

An error is throwed :

[Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

This is because the button si imported as bBtnClose (from button/button) and used with b-button-close.

mehdirande added a commit to mehdirande/bootstrap-vue that referenced this issue Jan 10, 2018

Fix bootstrap-vue#1522: Import button-close in alert with a name matc…
…hing tag.

bButtonClose component was imported in alert with the shortcut alias
(bBtnClose) but used with the full tag (b-button-close). When importing
b-alert as an individual component b-button-close alias was not set and
vue failed to import the b-button-close component.
Importing bButtonClose component with the fullname fix this issue.

@pi0 pi0 closed this in #1523 Jan 13, 2018

pi0 added a commit that referenced this issue Jan 13, 2018

@pi0

This comment has been minimized.

Member

pi0 commented Jan 14, 2018

Should be fixed in v1.4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment