I'm adding a MapPicker dataProvider to a Value Picker. By default it does a search that returns entries that start with the search key. I'm modifying it to return only the entries that contain the search key. The code to get the entries is working fine.
However, pressing enter with the focus in the search box in Internet Explorer is triggering two AJAX requests, resulting in duplicate entries in the results.
Can an event.preventDefault() be added in the onKeyPress for the search input box to prevent that?
Alternatively, if there's any way in the readEntries() method to identify if a search has already been done or to intercept the content of the picker box to eliminate duplicates, I'm open to that. Currently, even though readEntries() only returns one element, because it's triggered twice, it returns two lots of one element and adds both lots into the results panel.