()
| 76 | } |
| 77 | |
| 78 | componentDidMount() { |
| 79 | // Set up the cycle |
| 80 | if (this.props.ride === 'carousel') { |
| 81 | this.setInterval(); |
| 82 | } |
| 83 | |
| 84 | // TODO: move this to the specific carousel like bootstrap. Currently it will trigger ALL carousels on the page. |
| 85 | document.addEventListener('keyup', this.handleKeyPress); |
| 86 | } |
| 87 | |
| 88 | static getDerivedStateFromProps(nextProps, prevState) { |
| 89 | let newState = null; |
nothing calls this directly
no test coverage detected