Added fix for firefox bug

The dropdown would immediately close after being opened in the latest version of firefox (couldn't replicate on the demo page). Fix doesn't break other browsers and fixes the bug I experienced.