Fix select vertical issue inside input addon

This commit is contained in:
afc163 2017-06-25 17:22:07 +08:00
parent 7dafa985c5
commit 9f78e71c65

View File

@ -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