From 8389b94cf5260cc08750e2a0b51a91bf69df17c7 Mon Sep 17 00:00:00 2001 From: zombiej Date: Tue, 19 Feb 2019 18:27:53 +0800 Subject: [PATCH] search input sticky --- components/tree-select/style/index.less | 4 ++++ 1 file changed, 4 insertions(+) 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%; }