diff --git a/components/IndexSelector.js b/components/IndexSelector.js index 2b73e9303c..fdec5582c0 100644 --- a/components/IndexSelector.js +++ b/components/IndexSelector.js @@ -8,11 +8,16 @@ class IndexSelector extends React.Component { render() { var currentIndex = this.props.currentIndex; var indices = this.props.indices; - var cssClass = this.props.cssClass; + var htmlAttributes = this.props.htmlAttributes; + // React needs `className` in place of `class` + if (htmlAttributes.class) { + htmlAttributes.className = htmlAttributes.class; + htmlAttributes.class = null; + } return (