File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ const ActionDropdown = forwardRef(({
88 icon,
99 actionsAvailable,
1010 actionsVisible,
11+ setActionsVisibility,
1112 quickDialog,
1213 quickActions,
1314 onClick,
@@ -40,9 +41,8 @@ const ActionDropdown = forwardRef(({
4041 actions = { quickActions }
4142 label = { dropdownMenuLabel }
4243 onSelect = { ( idx ) => {
43- this . setState ( { actionsVisible : false } , ( ) => {
44- onQuickActionSelected && onQuickActionSelected ( idx )
45- } )
44+ setActionsVisibility ( false )
45+ onQuickActionSelected && onQuickActionSelected ( idx )
4646 } }
4747 />
4848 ) }
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ class SidebarHeader extends React.Component {
121121 onClick = { this . onAction }
122122 actionsAvailable = { actionsAvailable }
123123 actionsVisible = { actionsVisible }
124+ setActionsVisibility = { ( state ) => this . setState ( { actionsVisible : state } ) }
124125 quickDialog = { quickDialog }
125126 quickActions = { quickActions }
126127 dropdownMenuLabel = { dropdownMenuLabel }
@@ -145,6 +146,7 @@ class SidebarHeader extends React.Component {
145146 onClick = { this . onAction }
146147 actionsAvailable = { actionsAvailable }
147148 actionsVisible = { actionsVisible }
149+ setActionsVisibility = { ( state ) => this . setState ( { actionsVisible : state } ) }
148150 quickDialog = { quickDialog }
149151 quickActions = { quickActions }
150152 dropdownMenuLabel = { dropdownMenuLabel }
Original file line number Diff line number Diff line change 8585 }
8686
8787 .ds-dropdown__toggle :after {
88- right : -10px ;
88+ right : -10px !important ;
8989 }
9090 }
9191
You can’t perform that action at this time.
0 commit comments