mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Fix dropdown closing early issue (#5778)
This commit is contained in:
parent
ee021ba2c9
commit
60fb2140a7
@ -138,6 +138,7 @@ export const RequestGroupActionsDropdown = forwardRef<RequestGroupActionsDropdow
|
||||
ref={dropdownRef}
|
||||
onOpen={onOpen}
|
||||
dataTestId={`Dropdown-${toKebabCase(requestGroup.name)}`}
|
||||
closeOnSelect={false}
|
||||
triggerButton={
|
||||
<DropdownButton>
|
||||
<i className="fa fa-caret-down" />
|
||||
|
@ -177,6 +177,7 @@ export const ResponseHistoryDropdown = <GenericResponse extends Response | WebSo
|
||||
ref={dropdownRef}
|
||||
aria-label="Response history dropdown"
|
||||
key={activeResponse ? activeResponse._id : 'n/a'}
|
||||
closeOnSelect={false}
|
||||
className={className}
|
||||
triggerButton={
|
||||
<DropdownButton className="btn btn--super-compact tall" title="Response history">
|
||||
|
@ -408,6 +408,7 @@ export const SyncDropdown: FC<Props> = ({ vcs, workspace, project }) => {
|
||||
style={{ marginLeft: 'var(--padding-md)' }}
|
||||
className="wide tall"
|
||||
onOpen={() => refreshVCSAndRefetchRemote()}
|
||||
closeOnSelect={false}
|
||||
isDisabled={initializing}
|
||||
triggerButton={
|
||||
currentBranch === null ?
|
||||
|
@ -399,6 +399,7 @@ export const RequestUrlBar = forwardRef<RequestUrlBarHandle, Props>(({
|
||||
ref={dropdownRef}
|
||||
aria-label="Request Options"
|
||||
onClose={handleSendDropdownHide}
|
||||
closeOnSelect={false}
|
||||
triggerButton={
|
||||
<StyledDropdownButton
|
||||
className="urlbar__send-context"
|
||||
|
@ -56,6 +56,7 @@ export const Shortcuts: FC = () => {
|
||||
<td className="text-right options" style={{ verticalAlign: 'middle' }}>
|
||||
<Dropdown
|
||||
aria-label='Select a mode'
|
||||
closeOnSelect={false}
|
||||
triggerButton={
|
||||
<DropdownButton
|
||||
removePaddings={false}
|
||||
|
Loading…
Reference in New Issue
Block a user