From 8c3247009de75b8c98e6f4e1a21b3303a457d8c3 Mon Sep 17 00:00:00 2001 From: Dipon Roy Date: Wed, 23 May 2018 18:39:24 +0600 Subject: [PATCH] popover on 2nd click 1.clicked 1st time on a button to show popover, the popover is visible 2. clicked the dismiss button(inside popover), the popover not visible anymore 3. clicked 2nd time on the same button to show popover, nothing happened. 4. clicked 3rd time on the same button to show popover, the popover is visible again after this commit, the popover will also be visible at 2nd click --- src/knockout-bootstrap.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/knockout-bootstrap.js b/src/knockout-bootstrap.js index 7635c94..51077e2 100644 --- a/src/knockout-bootstrap.js +++ b/src/knockout-bootstrap.js @@ -201,6 +201,7 @@ function setupKoBootstrap(koObject, $) { popoverEl.find('button[data-dismiss="popover"]').click(function() { button.popover('hide'); + $element.data("bs.popover").inState.click = false; }); switch (options.placement) {