When using a Kendo React PanelBar in expandMode="single" I am getting the following warning, plus a drawing error:
Warning: Failed prop type: PanelBar child should be either PanelBarItem or Array of PanelBarItem.
in PanelBar (created by _temp)
I am rendering the control as seen in this HTML snippet:
return ( <PanelBar className="filter-bar" expandMode="single"> <PanelBarItem title={this.state.filterTitle} expanded={this.state.expanded} onSelect={this.handlePanelBarSelect}> <form id="filterForm" className="filter-form" onSubmit={this.handleSubmit}> <div className="form-row"> <div className="col"> <div className="form-group"> <label>Company:</label> <DropDownList className="form-control" data={this.state.companies} textField="text" dataItemKey="id" onChange={this.handleCompanyChange} defaultItem={defaultItemCompany} value={this.state.company} /> </div> </div> <div className="col"> <div className="form-group"> <label>Site:</label> <DropDownList className="form-control" data={this.state.sites} textField="text" dataItemKey="id" onChange={this.handleSiteChange} defaultItem={defaultItemSite} value={this.state.site} /> </div> </div> <div className="col"> <div className="form-group"> <label>Functional Location:</label> <DropDownList className="form-control" data={this.state.functionalLocations} textField="text" dataItemKey="id" onChange={this.handleFuncLocChange} defaultItem={defaultItemFunctionalLocation} value={this.state.functionalLocation} /> </div> </div> <div className="col"> <button title="Filter" ref="filterBtn" className="k-button k-primary" onClick={this.handleFilter} disabled={this.state.filterBtnDisabled}> {t('filter')} </button> </div> </div> </form> </PanelBarItem> </PanelBar>);Furthermore the downarrow/uparrow icon is drawn in the middle of a grid that follows this control on the page (see attached screenshot).
Attached is the generated code from the browser in a screenshot
