We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SplitButton popup gets closed if a selection is done on a dropdown of his child element

Thread ID:

Created:

Updated:

Platform:

Replies:

146697 Aug 14,2019 01:17 PM UTC Aug 19,2019 12:19 PM UTC Angular - EJ 2 3
loading
Tags: SplitButton
Marko Bezjak
Asked On August 14, 2019 01:17 PM UTC

Hello,

I am having this problem with split button where I put a template in the popup that contains DropDownComponent (basically any component that has its own popup) and when I select something in dropdown the split button popup gets closed as well.

I prepared an example to showcase my problem: https://stackblitz.com/edit/angular-146139-sample-modified-vk282w?file=app.component.html

To recreate:
1.) click on the button to open popup.
2.) select an item from dropdown list
3.) both popups get closed (problem)

I need a work-around or help with implementation so that only the child element popup will close first and then if i focus out of the split button only then the main popup closes.

Thanks in advance.
Marko.

Saranya Dhayalan [Syncfusion]
Replied On August 15, 2019 03:50 PM UTC

Hi Marko, 
 
Thank you for contacting Syncfusion support, 
 
We have checked your reported issue, we need to validate more on this. And we will update you the further details on August 19, 2019. 
 
Regards, 
Saranya. 


Marko Bezjak
Replied On August 16, 2019 08:43 AM UTC

Hello,

Very well. Thank you.

Vinoth Kumar Sundara Moorthy [Syncfusion]
Replied On August 19, 2019 12:19 PM UTC

Hi Marko, 
 
Thank you for the patience. 
 
We have checked your reported scenario and it can be achieved using workaround solution in the beforeClose event as like in the below code example, 
 
Code Example 
public beforeClose(args: any): void { 
    if(closest(args.event.target, '.e-ddl')){ 
        args.cancel = true; 
    } 
} 
 
For your convenience, we have prepared a sample. Please check the sample in below link, 
 
Could you please check the above sample and get back to us if you need any further assistance on this? 
 
Regards, 
Vinoth Kumar S 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon