From 9f78e71c65d357a5bad5f60a6cbaa24b9fa62252 Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 25 Jun 2017 17:22:07 +0800 Subject: [PATCH] Fix select vertical issue inside input addon --- components/form/style/index.less | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/components/form/style/index.less b/components/form/style/index.less index b01b2fb931..55639ab6ab 100644 --- a/components/form/style/index.less +++ b/components/form/style/index.less @@ -222,10 +222,19 @@ form { .@{ant-prefix}-select, .@{ant-prefix}-cascader-picker { width: 100%; + // Fix https://github.com/ant-design/ant-design/issues/6097 &:only-child { display: block; } } + + // Don't impact select inside input group addon + .@{ant-prefix}-input-group-addon .@{ant-prefix}-select, + .@{ant-prefix}-input-group-addon .@{ant-prefix}-cascader-picker { + &:only-child { + display: inline-block; + } + } } // Input combined with select