[Select]maxTagCount对tagInline不生效 #2703
Labels
🧐 Experience
Make Fusion easy and robust to use
improvement
improve some features
PR welcome
We need you to help us by sending a pull request :)
Component
Select
Reproduction link
https://codepen.io/luhaopeng/pen/jOVwEOK
Steps to reproduce
重现
点击重现链接,选择子节点,虽然设置了maxTagCount=3,但超出后依然会继续渲染tag。
描述
设置了tagInline的情况下,无论maxTagCount设置为多少都不会生效,在普通情况下影响不大,而对于子节点数量极多的树型组件如TreeSelect,(参考重现链接),选中父节点Component,然后反选一个子节点,Select的value就会由一个Component tag,变成999个tag,此时有明显卡顿。根据文档的参数描述:
再加上,渲染多余的tag并没有实际意义,还会造成额外开销,所以让maxTagCount在tagInline模式下也生效是不是更合适?
期望表现
tagInline模式下,value数量超过maxTagCount时,表现为额外渲染一个不带有close icon、label为"..."的tag。
问题所在代码
解决方案
The text was updated successfully, but these errors were encountered: