microsoft / vsts-extension-multivalue-control

A work item form control which allows selection of multiple values.
MIT License
47 stars 45 forks source link

fix the issue where dropdown hides automatically the 1st time we click on the control #47

Closed mohitbagra closed 6 years ago

mohitbagra commented 6 years ago

The issue was that when user click on the control the 1st time, both widow.focus and control.click are fired. window.focus is called first which toggles ON the control, then control.click is fired which toggles OFF. The click event is roughly fired after 200-300ms after window.focus, so I am setting a timeout of 500ms just to be safe