bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Popovers are closed even if popover-trigger is 'none'

Open Rouche opened this issue 7 years ago • 4 comments

Edit: oops, i just saw the need for maintainers. Well, thats unfortunate but understandable, thanks a lot to all contributors!

Bug description:

Is it normal that even with popover-trigger="'none'" tooltips are closed on ESC key?

Reading the code, it seems impossible to cancel this behavior.

Can an option be added? Our use case is that the user needs to read the information and click a "Dismiss" button, where a preference is saved for it to never appear again.

I can PR if need be its pretty simple.

Version of Angular, UIBS, and Bootstrap

Angular: 1.6.1

UIBS: 2.2.0

Bootstrap: 3.3.7

Rouche avatar Jan 17 '17 20:01 Rouche

This sounds like an easy feature - a PR would be good

wesleycho avatar Jan 23 '17 10:01 wesleycho

Do you want to use the option triggers.indexOf('none') ? If yes, this will change the current behavior..

Rouche avatar Jan 23 '17 15:01 Rouche

Ah sorry - I think triggers === 'none' might do the job.

wesleycho avatar Jan 23 '17 16:01 wesleycho

use none with an apostrophe like so

popover-trigger="'none'"

shmuel-web avatar Feb 10 '19 12:02 shmuel-web