Toast does not appear when called from an inherited form

Hi,

I have used the Toast/default-functionalities example in my application.  I put all of the code/markup into my base component form, but sfToast will not appear.  When I copy the entire code into a standalone component, it works.

Is there something I need to do to get this work?  Perhaps put this into a standalone component?

TIA,

Miles



1 Reply

RK Revanth Krishnan Syncfusion Team July 1, 2021 09:30 AM UTC

Hi Miles, 
 
 
Greetings from Syncfusion support. 
 
 
We have validated your query “I have used the Toast/default-functionalities example in my application.  I put all of the code/markup into my base component form, but sfToast will not appear.  When I copy the entire code into a standalone component, it works. Is there something I need to do to get this work?” 
 
We tried to reproduce the issue by rendering the toast directly in the component base page(index.razor), and also rendered the toast in a separate component and use it in the base component page, but we couldn’t reproduce the issue from our end, the toast shows properly in both the cases. We have prepared a sample for your reference, 
 
Can you please share the following details? 
  • The code snippet of the Toast rendered in both cases.
  • The exact package version used in the application.
  • The video illustration of the issue reproducing scenario.
  • If possible please share us with the simple issue reproducing sample or please modify the shared sample with the issue reproducing code.
 
The above details will be helpful for us to validate and reproduce the issue from our end and assist you at the earliest. 
 
Regards, 
Revanth 


Loader.
Up arrow icon