BoldSign®Effortlessly integrate e-signatures into your app with the BoldSign® API. Create a sandbox account!
"When I navigate to the second page of the Tabcomponent and click on the default dialog close button, I get this error. How can I resolve it?"
Error:
dom.js:346 Uncaught TypeError: Cannot read properties of null (reading 'closest')
at closest (dom.js:346:19)
at DropDownList.resetValueHandler (drop-down-list.js:592:88)
at FormValidator.reset (form-validator.js:218:22)
at FormValidator.destroy (form-validator.js:237:14)
at Edit.destroyForm (edit.js:788:57)
at Edit.onActionBegin (edit.js:710:22)
at Observer.notify (observer.js:107:29)
at Component.notify (component.js:353:32)
at Observer.eval (normal-edit.js:562:26)
at Observer.notify (observer.js:110:32)
at ComponentBase.trigger (component-base.js:266:36)
at NormalEdit.closeEdit (normal-edit.js:558:14)
at DialogEdit.closeEdit (dialog-edit.js:38:36)
at Edit.closeEdit (edit.js:210:25)
at Grid.closeEdit (grid.js:4357:29)
at DialogEditRender.dialogClose (dialog-edit-renderer.js:151:21)
at Observer.notify (observer.js:107:29)
at Base.trigger (base.js:197:43)
at Popup.close (dialog.js:538:23)
at Observer.notify (observer.js:107:29)
at Base.trigger (base.js:197:43)
at Popup.hide (popup.js:663:18)
at Observer.eval (dialog.js:1594:40)
at Observer.notify (observer.js:92:32)
at Base.trigger (base.js:197:43)
at Dialog.hide (dialog.js:1580:18)
at Dialog.closeIconClickEventHandler (dialog.js:184:19)
CustomGridTabComponent:
CustomGridModal Tab-2 page:
Hi Mehmet,
Greetings from Syncfusion Support.
Based on your description, we understand that when editing a record using a custom dialog that includes a tab component, you encounter a script error upon switching to the second tab and subsequently closing the dialog using the close button.
To investigate this issue, we attempted to replicate the behavior on our end by creating a sample based on the details you provided. However, we were unable to reproduce the error. For your reference, we have attached the sample we used for testing:
Sample: https://stackblitz.com/edit/react-fhz3duin?file=tabTwo.js
If you still face the issue, kindly share the details below for further validation.
These details will enable us to identify the root cause and provide a prompt resolution.
Regards,
Joseph I.