react-spectrum
50987147 - Fix double open menu (#925)

Commit
5 years ago
Fix double open menu (#925) * Fix double menu open This moves useInteractOutside to fire on mouse down instead of on up, this means menus won't reopen after they've been closed by the blur It also takes advantage of shouldCloseOnInteractOutside, which lets us detect if the the interaction was on the trigger, which will automatically toggle the menu when clicked. If we couldn't filter that event out, then the menu would just be closed from outside interaction and toggled open again immediately cleans up trigger toggle state so it always uses the latest state * Reduce logic in expression * Add back the story with two menus * missed a paren * move code to an easier to read spot
Author
Parents
Loading