drgullin / icheck

Highly customizable checkboxes and radio buttons (jQuery & Zepto)
http://fronteed.com/iCheck
7.39k stars 1.63k forks source link

Default Button Doesn't Fire #384

Open tbixby opened 6 years ago

tbixby commented 6 years ago

Working with the current version (iCheck v1.0.2), when icheck controls are used on a form, the default button doesn't fire when the enter key is pressed.

Is there a fix for this?

acharkizakaria commented 6 years ago

Please try to provide a jsbin/jsFiddle that reproduce the issue.

tbixby commented 6 years ago

Unfortunately, I was unable to make a jsFiddle example that would respond to pressing the enter key. Here's the fiddle I was working with: https://jsfiddle.net/tbesys99/chfgce7s/6/

In my web environment, the simple form in the fiddle would fire the SaveButton control when the enter key is pressed. If I replace the input textbox control with a group of iCheck radio buttons, if I select a radio button and press the enter key, the SaveButton is not fired.