Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Search autocomplele list in Chrome #26590

Merged
merged 3 commits into from Sep 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 18 additions & 6 deletions components/auto-complete/__tests__/__snapshots__/demo.test.js.snap
Expand Up @@ -21,6 +21,7 @@ Array [
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -52,6 +53,7 @@ Array [
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -89,7 +91,7 @@ exports[`renders ./components/auto-complete/demo/certain-category.md correctly 1
class="ant-input ant-input-lg"
placeholder="input here"
role="combobox"
type="text"
type="search"
value=""
/>
<span
Expand Down Expand Up @@ -148,6 +150,7 @@ exports[`renders ./components/auto-complete/demo/custom.md correctly 1`] = `
placeholder="input here"
role="combobox"
style="height:50px"
type="search"
/>
</span>
<span
Expand Down Expand Up @@ -202,6 +205,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -256,6 +260,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -342,6 +347,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -396,6 +402,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -452,7 +459,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
autocomplete="off"
class="ant-input"
role="combobox"
type="text"
type="search"
value=""
/>
<span
Expand Down Expand Up @@ -536,6 +543,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -593,7 +601,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
autocomplete="off"
class="ant-input"
role="combobox"
type="text"
type="search"
value=""
/>
<span
Expand Down Expand Up @@ -678,6 +686,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -735,7 +744,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
autocomplete="off"
class="ant-input"
role="combobox"
type="text"
type="search"
value=""
/>
<span
Expand Down Expand Up @@ -821,6 +830,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -878,7 +888,7 @@ exports[`renders ./components/auto-complete/demo/form-debug.md correctly 1`] = `
autocomplete="off"
class="ant-input"
role="combobox"
type="text"
type="search"
value=""
/>
<span
Expand Down Expand Up @@ -969,6 +979,7 @@ exports[`renders ./components/auto-complete/demo/non-case-sensitive.md correctly
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -1001,6 +1012,7 @@ exports[`renders ./components/auto-complete/demo/options.md correctly 1`] = `
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -1040,7 +1052,7 @@ exports[`renders ./components/auto-complete/demo/uncertain-category.md correctly
class="ant-input ant-input-lg"
placeholder="input here"
role="combobox"
type="text"
type="search"
value=""
/>
<span
Expand Down
Expand Up @@ -20,6 +20,7 @@ exports[`AutoComplete legacy dataSource should accept react element option 1`] =
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down Expand Up @@ -105,6 +106,7 @@ exports[`AutoComplete rtl render component should be rendered correctly in RTL d
autocomplete="off"
class="ant-select-selection-search-input"
role="combobox"
type="search"
value=""
/>
</span>
Expand Down
10 changes: 10 additions & 0 deletions components/calendar/__tests__/__snapshots__/demo.test.js.snap
Expand Up @@ -27,6 +27,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -86,6 +87,7 @@ exports[`renders ./components/calendar/demo/basic.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -972,6 +974,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -1031,6 +1034,7 @@ exports[`renders ./components/calendar/demo/card.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -1979,6 +1983,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -2043,6 +2048,7 @@ exports[`renders ./components/calendar/demo/customize-header.md correctly 1`] =
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -2886,6 +2892,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -2945,6 +2952,7 @@ exports[`renders ./components/calendar/demo/notice-calendar.md correctly 1`] = `
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -4240,6 +4248,7 @@ Array [
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -4299,6 +4308,7 @@ Array [
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down
Expand Up @@ -28,6 +28,7 @@ exports[`Calendar Calendar should support locale 1`] = `
readonly=""
role="combobox"
style="opacity: 0;"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -88,6 +89,7 @@ exports[`Calendar Calendar should support locale 1`] = `
readonly=""
role="combobox"
style="opacity: 0;"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -971,6 +973,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down Expand Up @@ -1030,6 +1033,7 @@ exports[`Calendar rtl render component should be rendered correctly in RTL direc
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down
Expand Up @@ -677,6 +677,7 @@ Array [
readonly=""
role="combobox"
style="opacity:0"
type="search"
unselectable="on"
value=""
/>
Expand Down