Southpaw-TACTIC / TACTIC

Open source remote collaboration platform used for configuring and deploying enterprise Workflow solutions.
http://tactic.southpawtech.com
Eclipse Public License 1.0
485 stars 166 forks source link

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 2 months ago

noaws commented 2 months ago

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.