nohros / nsPopover

Popover dialogs for angularjs applications.
MIT License
126 stars 107 forks source link

popovers won't run outsideClickHandler if another popover is clicked on #109

Open brokenalarms opened 8 years ago

brokenalarms commented 8 years ago

it just opens the new popover and keeps the others open. This holds regardless of whether triggerPrevent is disabled (which btw needs wrapping in:

triggerPrevent: (attrs.nsPopoverTriggerPrevent !== undefined) ? toBoolean(attrs.nsPopoverTriggerPrevent) : defaults.triggerPrevent,

to be compared successfully).

I cannot do it via options.group, as each marker is within an ng-repeat. an $emit to all of these causes a hide by timeout which disables the newly selected popover from appearing itself.

I can't find a solution to this besides registering every popover myself and calling hide on them all, but avoiding such hassles is the reason I moved to this library in the first place :) Thanks!