From 424e8ab0457c33b61390160167d9d235a6b460f8 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 28 Jan 2021 16:13:19 +0800 Subject: [PATCH] Roo/bootstrap/Popover.js --- Roo/bootstrap/Popover.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Roo/bootstrap/Popover.js b/Roo/bootstrap/Popover.js index 8795b8a77d..1f6cf7baea 100644 --- a/Roo/bootstrap/Popover.js +++ b/Roo/bootstrap/Popover.js @@ -61,16 +61,19 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { can_build_overlaid : false, maskEl : false, // the mask element + headerEl : false, + contentEl : false, + getChildContainer : function() { return this.contentEl; - return this.el.select('.popover-content',true).first(); + }, getPopoverHeader : function() { return this.headerEl - } + }, getAutoCreate : function(){ @@ -109,7 +112,7 @@ Roo.extend(Roo.bootstrap.Popover, Roo.bootstrap.Component, { { this.title = str; if (this.el) { - this.el.select('.popover-title',true).first().dom.innerHTML = str; + this.headerEl.dom.innerHTML = str; } }, -- 2.39.2