Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Programmatically triggering a 'click' events does not work inside ng-repeate, when using external jQuery library #3470

@smlz

Description

@smlz

When

  • using the full jQuery library inside Angular.js (as opposed to the built-in jQLite lib)
  • and triggering a 'click' event on a radio button inside a ng-repeate programmatically with jQuery

the model does not get updated, even though the effects of selecting the radio button are visible on the screen,.

However,

  • manually clicking on the radio button
  • or programmatically triggering the 'click'-event twice ($('input[name=test]').trigger('click').trigger('click'))

does give the expected results.

For full demo of the problem see the following jsfiddle: http://jsfiddle.net/MpyFW/8/

Being able to programmatically trigger events would be quite usefull for automated testing.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions