Skip to content

Commit

Permalink
fix(BcPremiumModal): only close dialog on esc
Browse files Browse the repository at this point in the history
  • Loading branch information
marcel-bitfly committed Nov 22, 2024
1 parent 9469ebe commit ef18702
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"BcInputUnit",
"BcLink",
"BcPageWrapper",
"BcPremiumModal",
"BcTablePager",
"BcToggle",
"DashboardChartSummaryChartFilter",
Expand Down
5 changes: 4 additions & 1 deletion frontend/components/bc/premium/BcPremiumModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ onUnmounted(() => {
<div class="text">
{{ props?.description || $t("premium.description") }}
</div>
<div class="footer">
<div
class="footer"
@keydown.esc.stop="hide()"
>
<BcButton
ref="buttonDismiss"
variant="secondary"
Expand Down

0 comments on commit ef18702

Please sign in to comment.