Allow elements to specify the data-target="#my_div" in their markup to grab the content from it. It respects the data-html attribute/option and uses $().html() and $().text() accordingly.

New option (enabled by default) that will close current open popover when clicking anywhere in the DOM except the popover.

Also fixed a bug where clicking links that have popovers (ie: <a href="#">) was causing the page to jump. Popover triggers now have their default click behavior prevented.

Comments

markhalliwell’s picture

Status: Active » Fixed

Committed 2749994 to 7.x-3.x:

Issue #2221327 by Mark Carver: Add "data-target" and "autoclose" options for popovers.

markhalliwell’s picture

Version: 7.x-3.x-dev » 8.x-3.x-dev
Assigned: Unassigned » ryan.armstrong
Status: Fixed » Needs review

  • Commit 2749994 on 7.x-3.x, 8.x-3.x by Mark Carver:
    Issue #2221327 by Mark Carver: Add "data-target" and "autoclose" options...

  • Mark Carver committed 2749994 on 8.x-3.x.x
    Issue #2221327 by Mark Carver: Add "data-target" and "autoclose" options...
markhalliwell’s picture

Version: 8.x-3.x-dev » 7.x-3.x-dev
Assigned: ryan.armstrong » Unassigned
Status: Needs review » Closed (fixed)

I'm just moving this back to 7.x. If this needs re-evaluation in 8.x, create a new issue.