This function will be called when a suggestion item is chosen (either by mouse click, or the enter key, etc). It is given the toString conversion function, the actual input element, and an Option of Some suggestion item or None.

The default version of this function simply sets the input's value to the stringified suggestion item, then it blurs the input.