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

Commit 406c489

Browse files
committed
Bugfix #14: Crashes jQuery172
1. Replaced .trigger() with .triggerHandler() because .trigger() doesn't work on disabled elements and seems to be the cause for the jQuery error.
1 parent def2058 commit 406c489

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jquery.cascadingdropdown.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* jQuery Cascading Dropdown Plugin 1.2.2
2+
* jQuery Cascading Dropdown Plugin 1.2.3
33
* https://github.com/dnasir/jquery-cascading-dropdown
44
*
55
* Copyright 2013, Dzulqarnain Nasir
@@ -59,12 +59,12 @@
5959

6060
// Enables the dropdown
6161
enable: function() {
62-
return this.el.removeAttr('disabled').trigger('enabled');
62+
return this.el.removeAttr('disabled').triggerHandler('enabled');
6363
},
6464

6565
// Disables the dropdown
6666
disable: function() {
67-
return this.el.attr('disabled', 'disabled').trigger('disabled');
67+
return this.el.attr('disabled', 'disabled').triggerHandler('disabled');
6868
},
6969

7070
// Checks if required dropdowns have value

0 commit comments

Comments
 (0)