How to re-render content of Modal

Hi Syncfusion Team,
I am using the content property of DialogComponent.

But, when I change the state on the parent component, the content modal is not re-render.
Sample: https://stackblitz.com/edit/react-ntrkyi-gya6ay
I expect when I change the state on the parent component, the content component is re-rendered.
How can I fix it?

Regards,
Hung



13 Replies 1 reply marked as answer

VJ Vinitha Jeyakumar Syncfusion Team April 26, 2022 01:24 PM UTC

Hi Hung,


Currently, we are validating your reported query. we will update you the further details in two business days on or before 28th April 2022.

Regards,
Vinitha


TT Ton That Hung April 27, 2022 01:09 AM UTC

Thank you for your updation.



VJ Vinitha Jeyakumar Syncfusion Team May 10, 2022 02:19 PM UTC

Hi Hung,


We can able to reproduce the reported issue from our end and we have also validated the root cause of the issue that the react state change contents are not rendered properly when using Dialog content template with Functional components.

We need some more time to further investigate on this issue. so we will update you the further details on or before 13th May 2022.

Regards,
Vinitha


TT Ton That Hung May 23, 2022 01:32 AM UTC

Hi Vinitha,
I am still waiting for your answer about this issue. Do you have any new updates?



VJ Vinitha Jeyakumar Syncfusion Team May 23, 2022 11:34 AM UTC

Hi Hung,


Sorry for the inconvenience caused,


We have considered the reported issue "React state change value is not reflected inside the Dialog content template" as a bug from our end and the fix will be included in Volume 2, 2022 release which is expected to be rolled out at the end of June 2022.


You can track this bug status in below feedback,
https://www.syncfusion.com/feedback/35110/react-state-change-value-is-not-reflected-inside-the-dialog-content-template


Regards,

Vinitha


Marked as answer

TT Ton That Hung May 24, 2022 02:28 AM UTC

Well, thanks for your update.



PO Prince Oliver Syncfusion Team May 24, 2022 04:31 AM UTC

Most welcome, we are glad to assist you.



VJ Vinitha Jeyakumar Syncfusion Team July 6, 2022 04:59 AM UTC

Hi Hung,


We couldn't include the fix for the issue "React state change value is not reflected inside the Dialog content template" due to its complexity. we will include the fix with our upcoming Vol 2 2022 SP release.

Regards,
Vinitha


TT Ton That Hung July 6, 2022 07:40 AM UTC

Well, thanks for your update.



VJ Vinitha Jeyakumar Syncfusion Team July 7, 2022 04:48 AM UTC

We will update you once the fix is available.



TJ Theveshwar Jayakumar Syncfusion Team February 20, 2023 10:17 AM UTC

Hi Ton That Hung,

 

Sorry for the delay caused.

We are glad to announce that our Essential Studio 2022 Volume 4 release v20.4.0.38 is rolled out and is available for download under the following link.

 

https://www.syncfusion.com/forums/179561/essential-studio-2022-volume-4-main-release-v20-4-0-38-is-available-for-download

 

The issue with “React state change value is not reflected inside the Dialog content template” has been resolved in this release. To access this fix, we suggest you to update the package to the latest version 20.4.38.

 

We would like to inform you that, by default the Dialog component content will not be updated while state updates. To resolve this, we suggest using statelessTemplates property value as empty array. This property specifies the array of the template names where the state value updates need to be ignored.

 

For your reference, we have prepared a sample in the link:  https://stackblitz.com/edit/react-ntrkyi-7maupn?file=index.js

 

Release notes:  https://ej2.syncfusion.com/react/documentation/release-notes/20.4.38/?type=all#common

 

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.

 

Regards,

Theveshwar



TT Ton That Hung March 2, 2023 08:24 AM UTC

Oh, good news.
Thank you for your support.



TJ Theveshwar Jayakumar Syncfusion Team March 3, 2023 03:57 AM UTC

Hi Ton That Hung,


Please get back to us if you need further assistance.


Regards,

Theveshwar


Loader.
Up arrow icon