Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select组件设置combobox属性后,控件高度有问题。 #3855

Closed
wufeng87 opened this issue Nov 15, 2016 · 3 comments
Closed

Select组件设置combobox属性后,控件高度有问题。 #3855

wufeng87 opened this issue Nov 15, 2016 · 3 comments

Comments

@wufeng87
Copy link

wufeng87 commented Nov 15, 2016

官网2.4.2版本的例子可重现该问题。

鼠标移动至combobox属性的Select的下方10px左右的位置的时候,Select就已经处于鼠标悬浮状态了。

ps: 下面这段代码(代码antd版本为2.2.1)Select加combobox属性的话,会导致整个form高度变高;去掉的话,回到正常:
有combobox属性时:
image

没有combobox属性时:
image

		<Form inline>
				<FormItem label="用户名:">
					<Select 
			          combobox
			          style={{ width: 150 }}
			          placeholder="请输入"
			          optionFilterProp="children"
			          notFoundContent="未找到用户名"
			            {...getFieldProps('username')}>
			            {usernameList}
			        </Select>
		        </FormItem>
		       	<FormItem label="会员状态:">
				    <Select  style={{ width: 100 }} {...getFieldProps('locked')}>
					    <Option value="">请选择</Option>
					    <Option value="false">正常</Option>
				    	<Option value="true">停用</Option>
				    </Select>
		       	</FormItem>
		        <Button type="primary" onClick={this.props.onSearch}>{VGConstant.btnTextSearch}</Button>
		</Form>
@afc163
Copy link
Member

afc163 commented Nov 15, 2016

先把你本地代码升级到 2.4.2 试试。

@afc163
Copy link
Member

afc163 commented Nov 15, 2016

确实有问题,感谢反馈。

@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants