Skip to content

Commit b576475

Browse files
committed
fix(CPopover, CTooltip): update PropTypes
1 parent f2e4a97 commit b576475

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/coreui-react/src/props.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,6 @@ export const textColorsPropType = PropTypes.oneOfType([
5858
])
5959

6060
export const triggerPropType = PropTypes.oneOfType([
61-
PropTypes.arrayOf(PropTypes.string),
61+
PropTypes.arrayOf(PropTypes.oneOf<Triggers>(['hover', 'focus', 'click']).isRequired),
6262
PropTypes.oneOf<Triggers>(['hover', 'focus', 'click']),
6363
])

0 commit comments

Comments
 (0)