this.handleSpotlightClick()} styles={this.spotlightStyles} />
);
// Hack for Safari bug with mix-blend-mode with z-index
if (getBrowser() === 'safari') {
const { mixBlendMode, zIndex, ...safarOverlay } = stylesOverlay;
- spotlight = {spotlight}
;
+ spotlight = this.handleSpotlightClick()} style={{ ...safarOverlay }}>{spotlight}
;
delete stylesOverlay.backgroundColor;
}
diff --git a/src/components/Spotlight.js b/src/components/Spotlight.js
index b025f244..59d453ed 100644
--- a/src/components/Spotlight.js
+++ b/src/components/Spotlight.js
@@ -1,12 +1,13 @@
import React from 'react';
import PropTypes from 'prop-types';
-function JoyrideSpotlight({ styles }) {
- return ;
+function JoyrideSpotlight({ styles, onClick }) {
+ return ;
}
JoyrideSpotlight.propTypes = {
styles: PropTypes.object.isRequired,
+ onClick: PropTypes.func,
};
export default JoyrideSpotlight;