MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / wrappedOnClick

Method wrappedOnClick

src/Carousel.js:286–292  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

284 // Rendering indicators, slides and controls
285 const indicators = children[0];
286 const wrappedOnClick = (e) => {
287 if (typeof indicators.props.onClickHandler === 'function') {
288 this.setState({ indicatorClicked: true }, () =>
289 indicators.props.onClickHandler(e),
290 );
291 }
292 };
293 const wrappedIndicators = React.cloneElement(indicators, {
294 onClickHandler: wrappedOnClick,
295 });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected