GWT 2.9.0 TextField clear option in Chrome and IE

132 views
Skip to first unread message

Hari

unread,
Jun 22, 2021, 4:03:58 AM6/22/21
to GWT Users
Hi All, 
Recently we have upgraded GWT from 2.1.0 to 2.9.0 with GXT 2.3.1a (Officially unsupported), Most major issues have been fixed, how ever we are having an issue with TextField<String> which is generating an HTML input element with type=text, this field in IE is showing with an cross icon to clear the text, but the same is not happening in chrome,

IE
___________________ 
|                              X |
-------------------------------

how to add clear icon with in the text input field in Chrome? Please let me know for more details required.  

Thanks

Jim Douglas

unread,
Jun 22, 2021, 10:02:31 AM6/22/21
to GWT Users
In our project CSS, we set display:none for the ::ms-clear pseudo element.

Hari

unread,
Jun 23, 2021, 5:42:28 AM6/23/21
to GWT Users
Actually my requirements are to add the clear button to the end on the textbox, I also tried adding textBox.getElement.setAttribute("type","search") but for some reason it is not working. Any help will be appreciated. 
Reply all
Reply to author
Forward
0 new messages