We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 处于 input 状态时,显示的 placeholder 与 placeholder 字段相同。
在 Select 的远古时期,可能是由于 showSearch 会使得 placeholder 为空,于是前人用 .ant-select-selection-selected-value::before { content: 'placeholder' } hack 了这个问题。
.ant-select-selection-selected-value::before { content: 'placeholder' }
然而,当 showSearch 默认的 placeholder 为 value 时,这个 hack 就失败了,会显示 hackText + value,同时,我们没有办法定义 searchPlaceholder
有一个相似的 issue
另外,searchValue 是不受控的,需求:当 search 时,先默认当前 value,这个需求也是做不了的(虽说没遇到这个需求,但这个需求显得常见)
如果接口没有问题,我可以 pr。
<Select showSearch value="value" placeholder="placeholder" searchValue="searchValue" // 有此字段则完全受控 searchPlaceholder="searchPlaceholder" // 有此字段则覆盖默认 > <Option ... /> </Select>
The text was updated successfully, but these errors were encountered:
@issuehuntfest has funded $20.00 to this issue. See it on IssueHunt
Sorry, something went wrong.
https://codesandbox.io/s/dreamy-butterfly-vdrne
searchValue of antd v4 Select is controlled prop now.
searchValue
v4.0.0 still not working and this class ant-select-selection-selected-value also missing
ant-select-selection-selected-value
Feel free to open a new issue please.
@afc163 has rewarded $14.00 to @zombiej. See it on IssueHunt
yesmeck
No branches or pull requests
What problem does this feature solve?
需求:期望在 Select 处于 input 状态时,显示的 placeholder 与 placeholder 字段相同。
在 Select 的远古时期,可能是由于 showSearch 会使得 placeholder 为空,于是前人用
.ant-select-selection-selected-value::before { content: 'placeholder' }
hack 了这个问题。然而,当 showSearch 默认的 placeholder 为 value 时,这个 hack 就失败了,会显示 hackText + value,同时,我们没有办法定义 searchPlaceholder
有一个相似的 issue
另外,searchValue 是不受控的,需求:当 search 时,先默认当前 value,这个需求也是做不了的(虽说没遇到这个需求,但这个需求显得常见)
如果接口没有问题,我可以 pr。
What does the proposed API look like?
IssueHunt Summary
zombiej has been rewarded.
Backers (Total: $20.00)
Submitted pull Requests
Tips
The text was updated successfully, but these errors were encountered: