cancel
Showing results for 
Search instead for 
Did you mean: 

Popover will close unexpectedly, when display a target in the component

Former Member
0 Kudos
162

Dear experts:

I put a multiple targets component to the popover content. But I found the popover will close unexpectedly, when call target.display to navigate to a new view.

Is it a bug of popover or is there a way to avoid it ?

B.R.

irfan_gokak
Contributor
0 Kudos

Please provide more inputs with code.

danielang
Explorer
0 Kudos

In case somebody else come accross this problem... Here is how to solve it:

// setup router in the embedded component
const router = this.getRouter();
const targetHandler = router.getTargetHandler();

targetHandler.setCloseDialogs(false);

router.initialize();

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

@Arjun Biswas thanks~

I want to use component router to navigate views in the popover .So I call addContent to add this componentContainer in my popover, when it use router of component to display target view, it will cause the close of popover.

former_member484715
Contributor
0 Kudos

Hi Lulu Ran,

Have you debugged the popover open and close actions, maybe some event is causing an error there. Could you explain your requirement some more clearly.

Regards,

Arjun Biswas