Skip to content

Commit

Permalink
make UploadModal no-close-on-esc to allow escape events on multisel…
Browse files Browse the repository at this point in the history
…ects

Fixes galaxyproject#18440
  • Loading branch information
ahmedhamidawan committed Jul 1, 2024
1 parent 58c55d4 commit 4f1fc83
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions client/src/components/Upload/UploadModal.vue
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<script setup>
import { BModal } from "bootstrap-vue";
import { setIframeEvents } from "components/Upload/utils";
import { useConfig } from "composables/config";
import { useUserHistories } from "composables/userHistories";
Expand Down Expand Up @@ -71,17 +72,21 @@ defineExpose({
</script>
<template>
<b-modal
<BModal
v-model="showModal"
:static="options.modalStatic"
header-class="no-separator"
modal-class="ui-modal"
dialog-class="upload-dialog"
body-class="upload-dialog-body"
no-close-on-esc
no-enforce-focus
hide-footer>
<template v-slot:modal-header>
<h2 class="title h-sm" tabindex="0">{{ options.title }}</h2>
<button type="button" class="close" aria-label="Close" @click="dismiss">
<span aria-hidden="true">&times;</span>
</button>
</template>
<UploadContainer
v-if="currentHistoryId"
Expand All @@ -90,7 +95,7 @@ defineExpose({
:current-history-id="currentHistoryId"
v-bind="options"
@dismiss="dismiss" />
</b-modal>
</BModal>
</template>
<style>
Expand Down

0 comments on commit 4f1fc83

Please sign in to comment.