How to Trigger Event After Semantic UI Search Completes Rendering

I am Hrithik Gupta.

I am working with Semantic UI’s standard search component and I have the following HTML:

<div class="ui search">
  <input class="prompt" type="text" placeholder="Common passwords...">
  <div class="results"></div>
</div>

I want to attach an event to the search input field that triggers only after the search results have been rendered. Currently, the event fires whenever I type a letter (e.g., “P”), but I want it to fire only after the search results have been displayed.

How can I achieve this? Is there a way to detect when the search results are rendered and then trigger my event?

I have tried – change, input event. But they are not working as expected.

I was expecting to find a way to trigger an event only after the search results are displayed, so I can execute additional code or perform actions based on the rendered results.