diff --git a/components/tree-select/style/index.less b/components/tree-select/style/index.less index 03dc245a5f..0c5bd1698d 100644 --- a/components/tree-select/style/index.less +++ b/components/tree-select/style/index.less @@ -160,8 +160,12 @@ .@{select-prefix-cls}-tree-dropdown { .reset-component; .@{select-prefix-cls}-dropdown-search { + position: sticky; + top: 0; + z-index: 1; display: block; padding: 4px; + background: @component-background; .@{select-prefix-cls}-search__field__wrap { width: 100%; }