Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html5 search input does not work with bootstrap

I have tested the input[type="search"] and it does not show the clear (x) icon when the bootstrap styles have been applied.

like image 787
Giolvani Avatar asked Dec 19 '12 16:12

Giolvani


2 Answers

input[type="search"] {  -webkit-box-sizing: content-box;  -moz-box-sizing: content-box;  box-sizing: content-box;  -webkit-appearance: searchfield; }  input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: searchfield-cancel-button; } 

works for me on Chrome (on my Mac, but not on my iPhone...)

like image 168
Thierry Avatar answered Oct 01 '22 05:10

Thierry


An issue related to yours has been already posted in their github

like image 32
sk8terboi87 ツ Avatar answered Oct 01 '22 04:10

sk8terboi87 ツ