Skip to content

The resource button is triggering twice #110

Open
@karthickrk1

Description

@karthickrk1

Subject of the issue/enhancement/features

The resources button is triggering twice and displaying the drawer twice. When I track the click event of this resource button, I notice that the event is triggering twice and opening the drawer twice. Visually, we may not be able to observe it, but if you track the code in the debugger, you can see that the resource button is being triggered twice.

Your environment

  • version (AT/Framework) : 5.31.11
  • which browser and its version : Chrome 114.0.5735.199
  • device(s) + operating system(s) : Window 10

Steps to reproduce

Create a course and enable the adapt-contrib-resources extension. Provide all the necessary details for the resources extension. Preview the course and click on the resource button. The drawer will open.

Expected behaviour

The resource button should trigger once when clicked.

Actual behaviour

The resource button triggers twice when clicked.

Screenshots (if you can)

If you observe the screenshot, you will notice that the showDrawer function is being triggered twice. As a result, the drawer is also appearing twice.
contrib-resource

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions