kartik-v / yii2-money

An advanced money mask input for Yii 2.0 styled for Bootstrap 3
http://demos.krajee.com/money
Other
27 stars 21 forks source link

Value of hidden input is not set when the form is sent pressing enter key #12

Closed jayala closed 7 years ago

jayala commented 9 years ago

If you press enter a value and press enter the form is sent, but the value is not saved. This is caused because the value is saved with the blur event. To solve this I made a modification to the keyDown event, by firing blurEvent when enter key is pressed.

tx350z commented 8 years ago

Confirmed this is still broken in v1.2.1. Also tried dev-master.

UPDATE: It works correctly with IE 11.0.9600.18321. It does NOT work with FixFox 46.0.1. Tried deleting browser and website cache with no luck.

Second UPDATE: Determined the problem only occurs in FireFox when the user presses Enter without exiting the field.

tx350z commented 7 years ago

This is STILL a problem with Firefox. It works fine with IE. Any update on a fix? My site will be moving to production in the near future and this is a major concern since it causes loss of data.

Thank you!

kartik/yii-money version 1.2.1 Firefox version 53.0.2 (32-bit) OS: Windows 8.1with all patches

kartik-v commented 7 years ago

Resolved via updates & enhancements to release v1.2.2. Duplicate to #24, #17, #4.