Fix dropdown closing early issue (#5778)

This commit is contained in:
Filipe Freire 2023-02-16 11:03:55 +00:00 committed by GitHub
parent ee021ba2c9
commit 60fb2140a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 0 deletions

View File

@ -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" />

View File

@ -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">

View File

@ -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 ?

View File

@ -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"

View File

@ -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}