-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The resource button is triggering twice #110
Comments
First off, I believe this is a bug with So, clicking the drawer button triggers the Drawer listens for this event and responds by calling I believe the problem is when Resources calls I think a simple fix would be to exit early from
@oliverfoster What do you think? |
Yup. Sounds fine @swashbuck Just as a sidenote @karthickrk1 it's possible to turn on source mapping in the AAT so that you don't have to debug in a minified file. I think it's in the project settings. |
@oliverfoster Thanks, I learned something new today. To clarify, it's in the Configuration Settings rather than Project Settings: |
Created #117 to replace the deprecated function name. Still looking into the core issue here, but it seems to be present in at least some other plugins (e.g. Glossary). |
Ok, looked into this a bit further. Some of this might be rehash from above. When clicking the main drawer button, the For plugins that open the drawer directly (e.g. Language Picker) and are not added to the DrawerCollection via I don't think that this has any crucial negative effects. Some observations:
Perhaps |
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
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.
The text was updated successfully, but these errors were encountered: