Skip to content

b-dropdown split link #1960

Closed
Closed
@AdamMarsden

Description

@AdamMarsden

Is there any possible way on b-dropdown split that the button that is split off to allows links like to="".

Ways I've tried either nest inside button OR apply to the parent div.dropdown

Workaround at the moment involves this:

<b-dropdown right split @click="goToUrl" text="Split Button" size="sm">
    <b-dropdown-item to="/tomyurl">Link 1</b-dropdown-item>
    <b-dropdown-item to="/tomyurl">Link 2</b-dropdown-item>
    <b-dropdown-item to="/tomyurl">Link 3</b-dropdown-item>
</b-dropdown>

<script>
export default {
    methods: {
        goToUrl() {
            this.$router.push('/gotourl')
        }
    }
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions