Hi PDev,
We suspect that you are trying to render the Syncfusion Dropdown component while refreshing the page also. We can achieve this requirement by checking the “document.readyState” property. The Document.readyState property describes the loading state of the document.
Please refer to the below sample and the code snippet for more details,
if (document.readyState === 'complete') { console.log(document.readyState); listObj.appendTo('#games'); } |
Sample : https://stackblitz.com/edit/uj4ck9-pfepas?file=index.js,index.html
If we misunderstood the requirement, we request you to provide additional details about the requirement as mentioned below. This will help us validate the requirement further and provide you with a better solution.
Exact Requirement details.
Please modify the shared sample as per your scenario.
Video illustration of the issue.
If this post is helpful, please consider Accepting it as the solution so that other members can locate it more quickly.
Regards,
Udhaya Kumar D