Skip to content
This repository was archived by the owner on Jun 10, 2025. It is now read-only.
This repository was archived by the owner on Jun 10, 2025. It is now read-only.

Change in :selectOptions causes the @selectionChanged event to trigger continuously. #82

@hemansah

Description

@hemansah

Hi, I am stuck in this situation currently.
image

I am using receivedData to populate the dropdown.
This receivedData is used in two API calls:

  • First when page is loaded, the dropdown will be populated.
  • Second, in the event handler @selectionChanged when some items are selected, it will make another API request and receive the new values in receivedData variable i.e. the same variable to populate the dropdown again.

Somehow, this is causing the event to trigger continuously making API requests.

When I commented the this.receivedData = res.data; line from FilterBySelectedItem(), then the continuous triggering stopped, means receivedData is not changed this time hence not causing the event to trigger.

Screenshot of event handler code:

image

Screenshot of on page load method
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions