dstreet / dependsOn

a jQuery plugin for handling form field dependencies
http://dstreet.github.com/dependsOn
MIT License
106 stars 32 forks source link

onEnable / onDisable don't work on document ready. #38

Closed decadence closed 7 years ago

decadence commented 7 years ago

Hello. If I set onEnable / onDisable options it doesn't work on initial page load, only after manual changes in dependency (check radio / checkbox). What I want is they trigger depends on dependency initial state right after I call dependsOn on element. State of the dependent element calculates fine but these callbacks don't fire.

Thanks for plugin.

decadence commented 7 years ago

@dstreet Any ideas?)

dstreet commented 7 years ago

Fixed this.

decadence commented 7 years ago

Thanks!