Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 21bd401

Browse filesBrowse files
committed
refactor(CPopover): update trigger prop
1 parent d8c538e commit 21bd401
Copy full SHA for 21bd401

File tree

1 file changed

+3
-3
lines changed
Filter options

1 file changed

+3
-3
lines changed

‎packages/coreui-vue/src/components/popover/CPopover.ts

Copy file name to clipboardExpand all lines: packages/coreui-vue/src/components/popover/CPopover.ts
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineComponent, h, PropType, ref, RendererElement, Teleport, Transition } from 'vue'
22
import { createPopper, Placement } from '@popperjs/core'
33

4-
import type { Placements } from '../../types'
4+
import type { Placements, Triggers } from '../../types'
55
import { executeAfterTransition } from '../../utils/transition'
66
import { getRTLPlacement } from '../../utils'
77

@@ -57,9 +57,9 @@ const CPopover = defineComponent({
5757
* @values 'click', 'focus', 'hover'
5858
*/
5959
trigger: {
60-
type: [String, Array] as PropType<string | string[]>,
60+
type: [String, Array] as PropType<Triggers | Triggers[]>,
6161
default: 'click',
62-
validator: (value: string | string[]) => {
62+
validator: (value: Triggers | Triggers[]) => {
6363
if (typeof value === 'string') {
6464
return ['click', 'focus', 'hover'].includes(value)
6565
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.