Skip to content
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

If there are two buttons with the same name on a single page, the script associated with the buttons will be triggered twice. #1846

Open
noaws opened this issue Aug 28, 2024 · 0 comments

Comments

@noaws
Copy link

noaws commented Aug 28, 2024

Describe the bug
Button with same name will trigger multiple times within a single page.

To Reproduce
Steps to reproduce the behavior:

  1. Go to shot page, which has a "add_note" button
  2. Expand task widget, which also has a "add_note" button
  3. Click task's "add_note" button
  4. Button behavior trigger twice.

Another situation:

  1. Go to task page, which has a "add_note" button
  2. Expand shot widget
  3. Expand task widget in shot widget.
  4. Click task's "add_note" button
  5. Button behavior trigger twice.

Expected behavior
Button callback only trigger one time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant