/**
 * Detects if only the primary button has been clicked in mouse events.
 * @param {MouseEvent} e Event instance (or Event-like, i.e. `SyntheticEvent`)
 * @return {Boolean}
 */
export const isPrimaryClick = e =>
  !(e.altKey || e.ctrlKey || e.metaKey || e.shiftKey) &&
  (("button" in e && e.button === 0) || ("buttons" in e && e.buttons === 1));

/**
 * Decorates a function so it calls if only the primary button has been
 * pressed in mouse events.
 * @param {Function} fn
 * @return {Function}
 */
export const onPrimaryClick = fn => e => (isPrimaryClick(e) ? fn(e) : true);

@@ -538,14 +538,26 @@
  =%3E 
-e =%3E (
+(e, ...args) =%3E%0A  
 isPr
@@ -568,16 +568,25 @@
 yClick(e
+, ...args
 ) ? fn(e
@@ -593,11 +593,10 @@
 ) : true
-)
 ;%0A

Update onPrimaryClick to pass down multiple args