From c2ccf0d1f5a368e07f33ef3b71df49b72f6b3692 Mon Sep 17 00:00:00 2001 From: Bharat Rawat <31788510+bcrazydreamer@users.noreply.github.com> Date: Fri, 17 Nov 2023 00:30:46 +0545 Subject: [PATCH 1/2] Expose type autoDestroy from @rc-component/trigger --- src/Dropdown.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Dropdown.tsx b/src/Dropdown.tsx index fec2121..f461d68 100644 --- a/src/Dropdown.tsx +++ b/src/Dropdown.tsx @@ -23,6 +23,7 @@ export interface DropdownProps | 'mouseLeaveDelay' | 'onPopupAlign' | 'builtinPlacements' + | 'autoDestroy' > { minOverlayWidthMatchTrigger?: boolean; arrow?: boolean; From 83e30dc06ef6d3ad7ed82576b5e10b903a7629f0 Mon Sep 17 00:00:00 2001 From: Bharat Rawat <31788510+bcrazydreamer@users.noreply.github.com> Date: Fri, 17 Nov 2023 11:27:32 +0545 Subject: [PATCH 2/2] [fix coverage]: updated basic test snapshot --- tests/__snapshots__/basic.test.tsx.snap | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/__snapshots__/basic.test.tsx.snap b/tests/__snapshots__/basic.test.tsx.snap index 14c07ac..ec1fd14 100644 --- a/tests/__snapshots__/basic.test.tsx.snap +++ b/tests/__snapshots__/basic.test.tsx.snap @@ -9,7 +9,7 @@ exports[`dropdown simply works 1`] = `