Skip to content

Commit

Permalink
feat(input-autocomplete): add className for popup options container (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
volkova-annie authored and SiebenSieben committed Nov 22, 2019
1 parent fd283fd commit 8d8fabe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/input-autocomplete/input-autocomplete.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ class InputAutocomplete extends React.Component {
/** Идентификатор для систем автоматизированного тестирования */
'data-test-id': Type.string,
/** Максимальная высота выпадающего списка опций */
popupMaxHeight: Type.number
popupMaxHeight: Type.number,
/** Название класса попапа с опциями */
popupClassName: Type.string
};

static defaultProps = {
Expand Down Expand Up @@ -199,7 +201,7 @@ class InputAutocomplete extends React.Component {
return [
<ResizeSensor onResize={ this.updatePopupStyles } key='popup-sensor' />,
<Popup
className={ cn('popup') }
className={ cn('popup', { custom: this.props.popupClassName }) }
size={ this.props.size }
ref={ (popup) => { this.popup = popup; } }
for={ this.props.name }
Expand Down

0 comments on commit 8d8fabe

Please sign in to comment.