Skip to content

Commit 6138657

Browse files
authored
Expose type autoDestroy from @rc-component/trigger & fix test coverage (#233)
* Expose type autoDestroy from @rc-component/trigger * [fix coverage]: updated basic test snapshot
1 parent de18711 commit 6138657

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/Dropdown.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ export interface DropdownProps
2323
| 'mouseLeaveDelay'
2424
| 'onPopupAlign'
2525
| 'builtinPlacements'
26+
| 'autoDestroy'
2627
> {
2728
minOverlayWidthMatchTrigger?: boolean;
2829
arrow?: boolean;

tests/__snapshots__/basic.test.tsx.snap

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`dropdown simply works 1`] = `
99
</button>
1010
<div
1111
class="rc-dropdown rc-dropdown-placement-bottomLeft"
12-
style="left: -1000vw; top: -1000vh; box-sizing: border-box;"
12+
style="--arrow-x: 0px; --arrow-y: 0px; left: -1000vw; top: -1000vh; box-sizing: border-box; min-width: 100px;"
1313
>
1414
<ul
1515
class="rc-menu rc-menu-root rc-menu-vertical"
@@ -32,6 +32,7 @@ exports[`dropdown simply works 1`] = `
3232
</li>
3333
<li
3434
class="rc-menu-item-divider"
35+
role="separator"
3536
/>
3637
<li
3738
class="rc-menu-item"

0 commit comments

Comments
 (0)