-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Clear input button for text inputs #5281
Clear input button for text inputs #5281
Conversation
…ure request jquery-archive#1834 - clear input button for text inputs
…ut type text. Feature request jquery-archive#1834 - clear input button for text inputs
…uest jquery-archive#1834 - clear input button for text inputs
Thanks for the PR! I reviewed your code and created a test page. Here is my feedback:
I know it is quite a lot. Do you want to look into this? |
No problem, I'll keep looking into this. I'll go through the list and commit some changes for each one. Thanks for the quick review, too. |
…e. Feature jquery-archive#1834: clear input button for text inputs
…inputs. Feature jquery-archive#1834: clear input button for text inputs
@uGoMobi So I committed some stuff that addresses everything but your last two bullets in your original review (I just noticed I didn't read your comment about the slider widget). But I made those changes to affect only search, text, and textarea until you guys decide what you want to do with the other input types in #1834. |
Thanks a lot! I pulled your changes in the branch that I created, so the test page is updated... looks good! Had to make a small change because of an undeclared variable. Also, at second thought I will take a closer look at the JS and CSS soon and will let you know what we want to do with the number and date input. Thanks again! |
I just merged your commits in master. I made a few changes. We think the clear button shouldn't be optional for "search". I enabled the option for all input types. We still have to look into date, number, color and other HTML5 input types, but those can be added to the blacklist. We also decided not to add the feature for textareas because this is not really common, and you are not happy when you accidently touch the clear button after typing long message on your phone ;-) Thanks a lot for all your work on this new feature! Looking forward to your next PR! :-) |
This is a change to four files (2 test files and then the js/css for the text input widget) to add feature request #1834 (#1834) to automatically add a text clear button to text inputs with data-clear-button=true.
May need to decide if its right to allow the clear button on textarea elements or if only on input type text (right now it does both).