Use e.target instead :focus selector.
Merge pull request #14669 from vsn4ik/dropdown_event_target

Use e.target instead :focus selector.