更改蓝图多选输入占位符文本

Changing a Blueprint MultiSelect input placeholder text

我正在寻找一种方法来替换 "Search..." 默认输入字符串。查看 MultiSelect component (and example page) 的 Blueprint Labs 文档,我无法找到设置渲染输入的占位符文本的方法。我曾假设它的工作方式类似于 Suggest 组件,但允许 inputProps 通过,但这似乎不起作用。这是我的示例代码:

<MultiSelect inputProps={{placeholder: "Search for a country"}} ...otherProps />

使用tagInputProps.

<MultiSelect
   tagInputProps={{ placeholder: 'Search for a country' }}
   itemRenderer={this.foo}
   tagRenderer={this.foo}
   items={[]}
   selectedItems={[]}
   onItemSelect={this.bar}
 />

按预期工作