From 428b07625c6e07805478278f605b9232ade4c91a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=81=8F=E5=8F=B3?= Date: Tue, 21 Apr 2020 18:03:47 +0800 Subject: [PATCH] fix: Select arrow cannot trigger open (#23448) close #23447 --- components/select/style/index.less | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/components/select/style/index.less b/components/select/style/index.less index 55f0abe9de..f0d167b1c9 100644 --- a/components/select/style/index.less +++ b/components/select/style/index.less @@ -108,8 +108,9 @@ font-size: @font-size-sm; line-height: 1; text-align: center; + pointer-events: none; - .anticon { + .@{iconfont-css-prefix} { vertical-align: top; transition: transform 0.3s; @@ -120,10 +121,10 @@ .@{select-prefix-cls}-open &.anticon-down { transform: rotate(180deg); } - } - &.anticon-down { - pointer-events: none; + &:not(.@{iconfont-css-prefix}-down) { + pointer-events: auto; + } } }