Skip to content

Popups not opened if html inside buttons (Chrome/WebKit) #1005

@milenon

Description

@milenon

If we have

	<button id="del" type="button" class="btn btn-outline-secondary" title="Delete">
		<i class="icon-cancel"></i>
	</button>
	<b-popover target="del" placement="left">
		Confirm?
		<button class="btn btn-warning" @click="delete">Yes</button>
		<button class="btn btn-info" @click="closeConfirm">No</button>
	</b-popover>

... no popover will be opened. If I remove the html from the button

	<button id="del" type="button" class="btn btn-outline-secondary" title="Delete">
		&times;
	</button>

... the popover will be shown.

I understand that this may be due to some issues with not detecting click events when there is html inside the buttons but this was working in the previous versions of bootstrap-vue(if that can be in any help).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions