ono / clearable_text_field Goto Github PK
View Code? Open in Web Editor NEWjQuery plugin adding a clear button in text input fields
Home Page: http://plugins.jquery.com/project/clearable_text_field
jQuery plugin adding a clear button in text input fields
Home Page: http://plugins.jquery.com/project/clearable_text_field
Hi,
Just started to use the plugin v0.3.2 and have come across a problem with IE7 & IE8.
The first time a text field with clearableTextField is used, when then 1st character is typed the text field loses focus.
Futher uses are fine till page is reloaded.
Works fine in Firefox 4, Chrome 10, Safari 5 and Opera 11
I created a very very simple page to rule out anything else on the page and still the same.
Sample code on Pastebin: http://pastebin.com/a0S1L6VW
Cheers,
Mike
I had an issue using this plugin in combination with some other jQuery plugins on the same input field. (Using 1.4, tablesorter_filter, and a hint plugin for text field hints). A second clear button appeared in a sibling text field when I began typing into the first field, also clicking the clear button would cause the browser to hang requiring me to force-quit Safari.
My workaround is to bind the clearableTextField event to only happen on keyup, so changing line 14 to:
$(this).bind('keyup', onSomethingChanged);
I imagine the plugins involved get confused in handling change() events and start an infinite loop. This issue could just as likely be caused by one of the other plugins, but I just wanted to give a heads up for anyone else experiencing the issue of a possible workaround.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.