[Enhancement] [mention] Mention 组件希望可以抛出dropdownVisible属性 #18457
SorrowX
started this conversation in
Feature Request
Replies: 2 comments 6 replies
-
回车后 |
Beta Was this translation helpful? Give feedback.
4 replies
-
第一次 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Feature type:
Enhancement
Details
mention
Description
我希望Mention组件抛出 dropdownVisible 属性
Additional comments
需求:
基于Mention组件封装发送框时,需要按enter直接发送,shift+enter换行。
这时需要监听onKeydown事件,回车时来按需阻止浏览器默认事件,到这里一切正常。
可是我们的Mention组件当出现提及弹窗时,用户进行键盘上下按键选择完后,回车选中后,这里我需要知道Mention组件的弹窗状态,如果处于打开,我监听的onKeydown事件函数直接return即可,目前拿不到该状态,导致我们用户层在封装时比较麻烦。
希望抛出该属性
2 votes ·
Beta Was this translation helpful? Give feedback.
All reactions