Forum Discussion
iftomkins
Maven
PaoloT , this is the issue that forced me to use the static code for the search input:
In short, the input type is incorrect on the mobile search component. It should be type = "search". Can this issue be fixed on the Lithium side? If so, then I can look into using the default mobile component. If not, perhaps you have a workaround so that the changing T-value doesn't break our current code?
- Alan
nathan
10 years agoExecutive
Instead of trying to directly trying to change the 'type' attribute via jQuery, have you tried replacing the input element alltogether (with jQuery)?
I had a quick experiment, and this seems to work for me:
$('.lia-component-search-widget-simple-search-form div.lia-form-input-wrapper').innerHTML = '<input class="lia-form-all-words-input lia-form-type-text lia-form-input-vertical" id="lia-allWords_0" name="allWords" type="search">'
You also need to create some CSS rules for the input[type=search] that replicate the input[type=text] rules.
Related Content
- 11 years ago
- 10 years ago
- 13 years ago