-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: should correct render Cascader with same field name of label and…
… value (#263)
- Loading branch information
Showing
3 changed files
with
121 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Cascader.Search should correct render Cascader with same field name of label and value 1`] = ` | ||
<div | ||
class="rc-cascader rc-cascader-single rc-cascader-show-arrow rc-cascader-open rc-cascader-show-search" | ||
> | ||
<div | ||
class="rc-cascader-selector" | ||
> | ||
<span | ||
class="rc-cascader-selection-search" | ||
> | ||
<input | ||
aria-autocomplete="list" | ||
aria-controls="rc_select_TEST_OR_SSR_list" | ||
aria-expanded="true" | ||
aria-haspopup="listbox" | ||
aria-owns="rc_select_TEST_OR_SSR_list" | ||
autocomplete="off" | ||
class="rc-cascader-selection-search-input" | ||
id="rc_select_TEST_OR_SSR" | ||
role="combobox" | ||
type="search" | ||
value="z" | ||
/> | ||
</span> | ||
<span | ||
class="rc-cascader-selection-placeholder" | ||
style="visibility: hidden;" | ||
/> | ||
</div> | ||
<div> | ||
<div | ||
class="rc-cascader-dropdown" | ||
style="opacity: 0; pointer-events: none; min-width: 0;" | ||
> | ||
<div> | ||
<div | ||
class="rc-cascader-menus" | ||
> | ||
<ul | ||
class="rc-cascader-menu" | ||
role="menu" | ||
> | ||
<li | ||
aria-checked="false" | ||
class="rc-cascader-menu-item" | ||
data-path-key="Zhejiang__RC_CASCADER_SPLIT__Hangzhou__RC_CASCADER_SPLIT__West Lake" | ||
role="menuitemcheckbox" | ||
title="Zhejiang / Hangzhou / West Lake" | ||
> | ||
<div | ||
class="rc-cascader-menu-item-content" | ||
> | ||
Zhejiang / Hangzhou / West Lake | ||
</div> | ||
</li> | ||
<li | ||
aria-checked="false" | ||
class="rc-cascader-menu-item rc-cascader-menu-item-disabled" | ||
data-path-key="Zhejiang__RC_CASCADER_SPLIT__Hangzhou__RC_CASCADER_SPLIT__Xia Sha" | ||
role="menuitemcheckbox" | ||
title="Zhejiang / Hangzhou / Xia Sha" | ||
> | ||
<div | ||
class="rc-cascader-menu-item-content" | ||
> | ||
Zhejiang / Hangzhou / Xia Sha | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<span | ||
aria-hidden="true" | ||
class="rc-cascader-arrow" | ||
style="user-select: none;" | ||
unselectable="on" | ||
> | ||
<span | ||
class="rc-cascader-arrow-icon" | ||
/> | ||
</span> | ||
</div> | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b9051a4
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: