Re-create dropdown event handler so that the new rendered list will have highlight on mouse hover.

This fixes #7969.

@bchintx Can you review this also? Thanks.