Inconsistent handling of value applied event

In my event listener for AutocompleteValueAppliedEvent, the value attribute of the event object is not populated consistently. If I choose an autocomplete option via the keyboard (arrow keys, then Enter), value always appears to be populated with the value I chose. But if I choose an autocomplete option via a mouse click, value sometimes is populated with the selected value, but other times is null. And when the event’s value is null, the value of the underlying TextField is just whatever I had typed in prior to making a selection, not the autocomplete value I selected. Am I doing something wrong, or is there a bug in the event handling? (I’m using version 24.1.7 with Vaadin Platform 24.9.9)

It’s been suggested that the problem here is that the mouse click on one of the suggested options causes the text field to lose focus, firing its blur event handler, and that there’s a race condition in which sometimes that happens before the field has been updated with the selected text, but other times not until after. Whether that’s exactly right or not, I’m not sure, but it does feel like it’s at least on the right track. Thus far I’ve been unable to figure out how to prevent that “early blur” from happening, or even to definitively confirm that’s the problem. Any suggestions would be greatly appreciated.