@@ -118,7 +118,8 @@ var FilteredList = function (_React$Component) {
118118 container = _props3 . container ,
119119 onDisplay = _props3 . onDisplay ,
120120 onNumOfListChange = _props3 . onNumOfListChange ,
121- onListDidMount = _props3 . onListDidMount ;
121+ onListDidMount = _props3 . onListDidMount ,
122+ noWrapper = _props3 . noWrapper ;
122123 var currentPage = this . state . currentPage ;
123124
124125 var filteredData = this . applySearch ( this . generateFilteredArticles ( data ) ) ;
@@ -128,6 +129,19 @@ var FilteredList = function (_React$Component) {
128129
129130 var paginatorObject = this . generatePaginatorObject ( ) ;
130131
132+ if ( noWrapper && ! paginatorDisplay ) {
133+ return _react2 . default . createElement ( _List2 . default , {
134+ data : filteredData ,
135+ itemDisplay : itemDisplay ,
136+ pageSize : pageSize ,
137+ container : container ,
138+ currentPage : currentPage ,
139+ onDisplay : onDisplay ,
140+ onNumOfListChange : onNumOfListChange ,
141+ onListDidMount : onListDidMount
142+ } ) ;
143+ }
144+
131145 return _react2 . default . createElement (
132146 'div' ,
133147 { className : ( 0 , _classnames2 . default ) ( className , 'wfui-filtered-list' ) } ,
@@ -165,7 +179,8 @@ FilteredList.propTypes = {
165179 simpleSearch : _react2 . default . PropTypes . bool ,
166180 searchKeys : _react2 . default . PropTypes . arrayOf ( _react2 . default . PropTypes . string ) ,
167181 wholeWord : _react2 . default . PropTypes . bool ,
168- searchLogic : _react2 . default . PropTypes . oneOf ( [ 'and' , 'or' ] )
182+ searchLogic : _react2 . default . PropTypes . oneOf ( [ 'and' , 'or' ] ) ,
183+ noWrapper : _react2 . default . PropTypes . bool
169184} ;
170185
171186FilteredList . defaultProps = {
0 commit comments