Ticket #5173 (closed bug: notabug)

Opened 5 years ago

Last modified 23 months ago

click method executes twice on click

Reported by: _matesko_ Owned by:
Priority: major Milestone:
Component: ui.button Version: 1.8rc1
Keywords: Cc:
Blocking: Blocked by:

Description

Click event listener executes twice on button click.

Example:

$("#button").click(function() {

alert('clicked');

});

will produce two alerts

Change History

comment:1 in reply to: ↑ description Changed 5 years ago by _matesko_

normal button fires once, that is OK checkbox fires twice radio group fires as many times as there are radios in that group

Replying to _matesko_:

Click event listener executes twice on button click.

Example:

$("#button").click(function() {

alert('clicked');

});

will produce two alerts

comment:2 follow-up: ↓ 3 Changed 5 years ago by scott.gonzalez

  • Status changed from new to closed
  • Resolution set to invalid

This sounds like you're using an id multiple times. Please ask for helps on the forum  http://forum.jquery.com

comment:3 in reply to: ↑ 2 Changed 5 years ago by _matesko_

correct!
what fooled me was that I was using demo files to test, and there is div with same id as radio button.

thanks

Replying to scott.gonzalez:

This sounds like you're using an id multiple times. Please ask for helps on the forum  http://forum.jquery.com

comment:4 Changed 23 months ago by scott.gonzalez

  • Milestone TBD deleted

Milestone TBD deleted

Note: See TracTickets for help on using tickets.