GWT ListBox getSelectedIndex() not working as intended when hovered over list items
I have a GWT ListBox. My validation code inquires whether the ListBox's selected index is -1 (my ListBox's default state). If I do not touch the ListBox, the getSelectedIndex() returns -1, as expected. **If I hover over the ListBox items but do not click on one (i.e. click outside), getSelectedIndex() returns a non-(-1) index**. I want it to return -1 unless I click on a ListBox item and the ListBox updates itself to reflect that selection.

What should I do?
GWT ListBox getSelectedIndex() not working as intended when hovered over list items
===

I have a GWT ListBox. My validation code inquires whether the ListBox's selected index is -1 (my ListBox's default state). If I do not touch the ListBox, the getSelectedIndex() returns -1, as expected. **If I hover over the ListBox items but do not click on one (i.e. click outside), getSelectedIndex() returns a non-(-1) index**. I want it to return -1 unless I click on a ListBox item and the ListBox updates itself to reflect that selection.

What should I do?