Skip to content

Commit 36e8929

Browse files
authored
Fixed non-closing list of APIs dropdown widget (#2450)
1 parent 15b7735 commit 36e8929

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/admin/media/mediaModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export class MediaModal extends React.Component<MediaModalProps, MediaModalState
105105
}
106106

107107
deleteMedia = async (): Promise<void> => {
108+
// TODO: check if can be replaced with map loop instead. for loop is used because BE is not deleting it properly
108109
for (const file of this.state.selectedFiles) {
109110
await this.mediaService.deleteMedia(file);
110111
}

src/components/apis/list-of-apis/ko/runtime/api-list-dropdown.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<!-- ko foreach: { data: apis, as: 'item' } -->
8080
<div class="menu menu-vertical" role="list">
8181
<a href="#" role="listitem" class="nav-link text-truncate" data-dismiss
82-
data-bind="attr: { href: $component.getReferenceUrl(item) }, css: { 'nav-link-active': $component.selectedApiName() === item.name }">
82+
data-bind="attr: { href: $component.getReferenceUrl(item) }, css: { 'nav-link-active': $component.selectedApiName() === item.name }, activate: $component.closeDropdown">
8383
<span data-bind="text: item.displayName"></span>
8484
<!-- ko if: item.type === 'soap' -->
8585
<span class="badge badge-soap">SOAP</span>

0 commit comments

Comments
 (0)