Skip to content

Commit ba8a728

Browse files
committed
Always sync input width when panel is open or not
close ant-design/ant-design#4174
1 parent 938be44 commit ba8a728

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Select.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ const Select = React.createClass({
162162
},
163163

164164
componentDidUpdate() {
165-
const { state, props } = this;
166-
if (state.open && isMultipleOrTags(props)) {
165+
if (isMultipleOrTags(this.props)) {
167166
const inputNode = this.getInputDOMNode();
168167
const mirrorNode = this.getInputMirrorDOMNode();
169168
if (inputNode.value) {

0 commit comments

Comments
 (0)