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

Bug in sidebar.js with Tab switching

Thread ID:

Created:

Updated:

Platform:

Replies:

141701 Dec 28,2018 03:03 PM UTC Dec 31,2018 12:11 PM UTC JavaScript - EJ 2 3
loading
Tags: Sidebar
Simon
Asked On December 28, 2018 03:03 PM UTC

Hi,

I'm running into a javascript error from the code in Essential J2 2 (latest version 16.4.44). I'm using the Grid, with Dialog and Tabs.

When I use a Dialog with an html template, with a TEXTAREA element in a Tab object, when I switch tabs, sidebar.js causes in error in the TriggerAnimation method

"Cannot read property 'id' of undefined."

The error happens at that line in node_modules\@syncfusion\ej2-navigations\dist\es6\ej2-navigations.es2015.js: 

        this.prevActiveEle = newCnt.id;

where newCnt can be sometimes undefined.

I have provided a reproducing sample. My template looks like this:

    <div id='tab_html_markup'>
        <div class='e-tab-header'>
            <div>General</div>
            <div>Other</div>
        </div>
        <div class='e-content'>
            <div>
                <div>
                    <div>
                        <div>
                            <textarea />
                        </div>
                    </div>
                </div>
            </div>
            <div>
                <div>
                    <div>
                    </div>
                </div>
            </div>
        </div>
    </div>

If you replace the <textarea> by <input> for example, it works fine.

Thanks.

Attachment: WebApplication5_bb57c10f.zip

Deepa Loganathan [Syncfusion]
Replied On December 31, 2018 11:33 AM UTC

Hi Simon,  
 
Thanks for contacting Syncfusion support.  
 
We have checked the sample in attachment and found the script error was because of mismatching close tag of TextArea element. Since TextArea is not a self-closing tag, it requires a proper closing tag. 
 
We have attached the corrected sample in below link. Please check and get back to us if you need further assistance. 
 
 
Regards,  
Deepa L. 


Simon
Replied On December 31, 2018 11:44 AM UTC

Hi,

Aw! My bad.
Everything's in order now.

Thanks for that.
Simon.

Deepa Loganathan [Syncfusion]
Replied On December 31, 2018 12:11 PM UTC

Hi Simon,  
 
We are glad to hear that the issue was resolved. 
 
Regards,  
Deepa L. 


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