Response title
This is preview!
listviewbeforefilter
function.listviewbeforefilter and this problem will disappear. I added several breaks at the end of the page so it will remain visible after keyboard removal, but that is very rough solution.
Our workaround is to find when the listview is scrolled down and hide keyboard before the user has any chance to click on some item. We achieved that by using the jQuery waypoints plug-in. It detects when the search field reaches the top of the screen and then by triggering the blur function keyboard hides:
if($.mobile.support && $.mobile.support.touch){
$('input[data-type="search"]').waypoint(function(direction){
if(direction == "down" && this === window.document.activeElement){
$( this ).blur();
}
});
}
I don't understand what you mean by this. Text size changes? Something else? Listviews shouldn't be "changing size" when the keyboard is shown or not.
All in all when search field looses focus listview starts a resize
listviewbeforefilter event as:
Listview reveals items very well on search.
About the resize. Indeed listview doesn't change its size, but scrolls down and sometimes a click event on some of the end items triggers href function of another item. For example if we have 10 listview items numbered from 1 to 10. Initially we have items from 1 to 3 visible. Then we decide to scroll down the listview. While we scroll, the focus is still on the search field and keyboard is up. Now, items 7 to 10 are visible and we decide to click on the last item 10. We make a very short tap on item 10. At that point item 10 highlights in blue, keyboard hides, item 10 moves down along with the whole listview and on its place comes item 6 which also highlights in blue. Finally the href function of item 6 is triggered. Which is the main problem. The click on item 10 triggers the href function of item 6.© 2013 jQuery Foundation
Sponsored by and others.