Skip to content

Commit 0adb1c1

Browse files
committed
refactor(CPopover, CTooltip): update PropTypes to allow adding arrays
1 parent 7bb524c commit 0adb1c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/coreui-react/src/props.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,7 @@ export const textColorsPropType = PropTypes.oneOfType([
5757
PropTypes.string,
5858
])
5959

60-
export const triggerPropType = PropTypes.oneOf<Triggers>(['hover', 'focus', 'click'])
60+
export const triggerPropType = PropTypes.oneOfType([
61+
PropTypes.arrayOf(PropTypes.string),
62+
PropTypes.oneOf<Triggers>(['hover', 'focus', 'click']),
63+
])

0 commit comments

Comments
 (0)