mentions icon indicating copy to clipboard operation
mentions copied to clipboard

fix: #297 disabled option can be selected by pressing Enter key

Open doublelam opened this issue 5 months ago • 2 comments

Summary by CodeRabbit

  • 新增/修复
    • Mentions 组件在选择时会自动跳过被禁用的选项,避免插入无效文本与触发 onSelect;其余输入与状态更新逻辑保持一致,提升一致性与可用性。
  • 文档
    • 基础示例新增一个禁用的“Dark”选项(位于 Bamboo 与 Cat 之间),直观展示不可选项在下拉中的显示与交互效果,便于理解实际行为。

doublelam avatar Aug 21 '25 06:08 doublelam