aboutsummaryrefslogtreecommitdiff
path: root/src/components/popover
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2023-05-08 22:04:05 +0300
committerHenry Jameson <me@hjkos.com>2023-05-08 22:04:05 +0300
commitb79f297692eeca5e774a1dd124cec2b3bc41b977 (patch)
tree64abc53c85b8ed14f6d012f86261c3e01cad4cad /src/components/popover
parent039b6c61a2ac0c64b1d24295374401f8bf56af0a (diff)
fix double pushbuttons in the draft buttons
Diffstat (limited to 'src/components/popover')
-rw-r--r--src/components/popover/popover.js3
-rw-r--r--src/components/popover/popover.vue3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/popover/popover.js b/src/components/popover/popover.js
index d44b266b..bc078533 100644
--- a/src/components/popover/popover.js
+++ b/src/components/popover/popover.js
@@ -45,6 +45,9 @@ const Popover = {
// Lets hover popover stay when clicking inside of it
stayOnClick: Boolean,
+ // Use styled button (to avoid nested buttons)
+ normalButton: Boolean,
+
triggerAttrs: {
type: Object,
default: {}
diff --git a/src/components/popover/popover.vue b/src/components/popover/popover.vue
index fd0fd821..1a4bffd9 100644
--- a/src/components/popover/popover.vue
+++ b/src/components/popover/popover.vue
@@ -5,7 +5,8 @@
>
<button
ref="trigger"
- class="button-unstyled popover-trigger-button"
+ class="popover-trigger-button"
+ :class="normalButton ? 'button-default btn' : 'button-unstyled'"
type="button"
v-bind="triggerAttrs"
@click="onClick"