Search appearing as "Go" on iPhone: How to change the search input type to type="search"
In testing our mobile V1 community, we noticed that when the user is focused on the search input, the iphone keyboard says "Go". It should say "Search". In order for it to say search, the input must have type="search". Currently it has type="text".
I tried changing this with jQuery:
$("#lia-body .lia-content .lia-form-all-words-entry input").attr("type","search");
But it gave me the following error, and the internet tells me that you cannot change the type of an input with jQuery.
"Uncaught Error: type property can't be changed"
How can this be fixed? It seems like a small oversight on Lithium's part when first designing the search input, and I hope it can be fixed. :)
Hi iftomkins
thanks for sharing the StackOverflow article. How I see - it there are two options:
- Attempt the customization of the search field. Rather than using the OOTB component - you may try to create a custom component using the required input type
- Raise an Idea in our ideation board - this should give it some visibility to product management. It sounds like it could be a quick win, however I am not really in a position to see the full picture around what is required to change this in terms of effort and testing within the platform etc... Best to put it out there, and get it reviewed by our product managers!
Thanks,