Skip to content

Commit 693098e

Browse files
committed
Fix nullable refObject
1 parent 7c5ce7f commit 693098e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/component/src/Attachment/Text/private/ActivityCopyButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { hooks } from 'botframework-webchat-api';
22
import { validateProps } from 'botframework-webchat-api/internal';
33
import classNames from 'classnames';
44
import React, { memo, useCallback, useEffect, useRef, useState } from 'react';
5-
import { instance, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
5+
import { instance, nullable, object, optional, pipe, readonly, string, type InferInput } from 'valibot';
66

77
import useStyleSet from '../../../hooks/useStyleSet';
88
import { useQueueStaticElement } from '../../../providers/LiveRegionTwin';
@@ -14,7 +14,7 @@ const { useLocalizer, useUIState } = hooks;
1414
const activityCopyButtonPropsSchema = pipe(
1515
object({
1616
className: optional(string()),
17-
targetRef: refObject(instance(HTMLElement))
17+
targetRef: refObject(nullable(instance(HTMLElement)))
1818
}),
1919
readonly()
2020
);

0 commit comments

Comments
 (0)