CarlRaymond / jquery.cardswipe

jQuery plugin for magnetic card readers
MIT License
115 stars 49 forks source link

$("input").blur() causing issues when textbox has focus in Chrome v33.0.1750.154 #1

Closed madannes closed 10 years ago

madannes commented 10 years ago

Only seeing initial %B in parser. Removing that $("input").blur() line of code fixes the issue.

CarlRaymond commented 10 years ago

I haven't been able to reproduce the issue on Windows. What platform are you on, and what does your markup look like?

madannes commented 10 years ago

Sorry.. I should have taken the time to be more specific. I'd also like to say that I think this is a great plugin and I appreciate you contributing it!

After trying to repro this issue, I've narrowed it down to being a problem only in the context of a jQueryUI modal dialog. I am running on Win8 64bit.

Here is a fiddle that is breaking for me: http://jsfiddle.net/madannes/6hEZk/

madannes commented 10 years ago

Let me also point out that if I update the fiddle to jQuery 2.0.2 with UI 1.10.3, the problem is not present for me.

http://jsfiddle.net/madannes/hP6r9/

Please note that the issue is not holding me back from using the plugin at all, so don't feel pressure in any way to fix it for older versions of jQuery.

Thanks again for contributing!

JamoCA commented 5 years ago

According to JQMigrate 3.0.1, the jQuery.fn.blur() event shorthand is deprecated. jQuery advises that blur() be updated to use trigger('blur') instead.

Should this be reported and opened as a new issue?