* Add: #56 投稿のブーストボタンをクリックしたらポップアップメニューが出るオプション * ブースト時に確認ダイアログを表示する設定との兼ね合いでメニュー項目を削除
This commit is contained in:
parent
a2dbc4a818
commit
69ba7a70d5
14 changed files with 127 additions and 36 deletions
|
@ -170,6 +170,7 @@ class Dropdown extends PureComponent {
|
|||
title: PropTypes.string,
|
||||
disabled: PropTypes.bool,
|
||||
scrollable: PropTypes.bool,
|
||||
active: PropTypes.bool,
|
||||
status: ImmutablePropTypes.map,
|
||||
isUserTouching: PropTypes.func,
|
||||
onOpen: PropTypes.func.isRequired,
|
||||
|
@ -284,6 +285,7 @@ class Dropdown extends PureComponent {
|
|||
children,
|
||||
renderItem,
|
||||
renderHeader,
|
||||
active,
|
||||
} = this.props;
|
||||
|
||||
const open = this.state.id === openDropdownId;
|
||||
|
@ -299,7 +301,7 @@ class Dropdown extends PureComponent {
|
|||
icon={!open ? icon : 'close'}
|
||||
iconComponent={iconComponent}
|
||||
title={title}
|
||||
active={open}
|
||||
active={open || active}
|
||||
disabled={disabled}
|
||||
size={size}
|
||||
onClick={this.handleClick}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue