4 ms·
Note that instead of using an input type=text and enterkeyhint=search, you can use input type=search.
by hk__2 5y ago
Note that instead of using an input type=text and enterkeyhint=search, you can use input type=search.
- nkozyra 5y agoSure, but this tip is explicitly to change the text (or icon, depending) of the onscreen virtual keyboard, so these are different functionalities.
- fleddr 5y agoThese are not equivalents. Input type=search can have side effects in that it renders the input box differently, for example with a "X" inside to clear the search. Which may be good, but it may also conflict with your design system.
- hk__2 5y agoYes; personally I’d rather have a type=search to have the semantics and then apply CSS on it, rather than a type=text with no semantic meaning at all that’s modified to behave like a type=search.
- cxr 5y agoenterkeyhint is embarrassingly concrete. Should've accomplished this by specifying semantics for the alt and rel attributes.
- TAKEMYMONEY 5y agoMy first thought as well, should we expect `prntscrnkeyhint` soon?
- lloydatkinson 5y agoThe search input sucks on iOS - it randomly has square corners or round corners depending on arbitrary information.
- deleted 5y ago[deleted]