Skip to content

Commit

Permalink
feat(Popover): default delay from config
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamincanac committed Jan 24, 2024
1 parent c4a1c04 commit 7f5711b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/overlays/Popover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ export default defineComponent({
},
openDelay: {
type: Number,
default: 0
default: () => config.default.openDelay
},
closeDelay: {
type: Number,
default: 0
default: () => config.default.closeDelay
},
overlay: {
type: Boolean,
Expand Down
4 changes: 4 additions & 0 deletions src/runtime/ui.config/overlays/popover.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@ export default {
popper: {
strategy: 'fixed'
},
default: {
openDelay: 0,
closeDelay: 0
},
arrow
}

0 comments on commit 7f5711b

Please sign in to comment.