Skip to content

Select.Option 的 title 属性设置后不生效 #33105

@augustVino

Description

@augustVino
  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

api中对Select.Option的title属性说明为:『选中该 Option 后,Select 的 title』,但是在Option中设置title属性后,选中某个Option后,Select的title跟随了optionLabelProp定义的字段。反而是hover到Option时,Option的title是正确的。

What is expected?

Select的title属性值根据选中项来动态自定义变更。

What is actually happening?

Select的title属性值跟随了optionLabelProp定义的字段的属性值变化

Environment Info
antd 4.17.2
React 16.14.0
System mac
Browser Chrome 96.0.4664.55(正式版本) (x86_64)

不清楚是设计如此还是代码bug,若是设计如此,麻烦变更一下api中的说明。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions