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. Image for the cookie policy date

Bug in sidebar.js with Tab switching

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

3 Replies

DL Deepa Loganathan Syncfusion Team 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. 



SI Simon December 31, 2018 11:44 AM UTC

Hi,

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

Thanks for that.
Simon.


DL Deepa Loganathan Syncfusion Team December 31, 2018 12:11 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon