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

Border shades dialog

When focus is not in a table, click to launch border shades dialog you will see

Uncaught RangeError: Maximum call stack size exceeded
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
    at e (layout.js:1000)
    at Ik (VM1871 cse_element__en.js:444)
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
    at e (layout.js:1000)
    at Ik (VM1871 cse_element__en.js:444)
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
    at e (layout.js:1000)
    at Ik (VM1871 cse_element__en.js:444)
    at Object.<anonymous> (VM1871 cse_element__en.js:450)
2document-editor-container.js:453 Uncaught TypeError: Cannot read property 'tableFormat' of undefined
    at e.loadBordersShadingsPropertiesDialog (document-editor-container.js:453)
    at e.show (document-editor-container.js:453)
    at r.showBordersAndShadingDialog (document-editor-container.js:453)
    at r.showDialog (document-editor-container.js:453)
    at HTMLButtonElement.eval (index.ts:22)

-

1 Reply

RT Ramya Thirugnanam Syncfusion Team January 7, 2019 06:39 AM UTC

Hi Sampurnima, 
 
We can reproduce the reported issue in border and shading dialog. But, this an invalid approach to open BorderAndShading dialog without current focus in table. Since, borders and shading dialog is depending on current focused table for manipulation option in it. 
 
So, please add the below validation in your sample to ensure that current selection in table to resolve this issue. 
 
// Condition to check selection is in table or not  
if (documenteditor.selection.contextType.indexOf('Table') !== -1) { 
//add you code hear 
    documenteditor.showDialog("BordersAndShading"); 
} 
 
 
Regards, 
Ramya T 


Loader.
Live Chat Icon For mobile
Up arrow icon