Skip to content

<Mentions /> 结果集为空的时候,回车会报错, [Vue warn]: Error in v-on handler: "TypeError: Cannot read property 'value' of undefined" #2391

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
townmi opened this issue Jun 9, 2020 · 1 comment

Comments

@townmi
Copy link

townmi commented Jun 9, 2020

Version

1.6.2以及低版本

Environment

  • 5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/82.0.4083.0 Safari/537.36
  • vue.version : 2.6.11

Reproduction link

https://antdv.com/components/mentions-cn/

Steps to reproduce

  1. 在输入框输入@
  2. 输入字符,直到结果空,显示暂无数据
  3. 一直回车,一直报错
  4. 报错产生的代码块
    const { value: mentionValue = '' } = option;

What is expected?

查找结果集为空,回车,应该不再显示暂无数据,select事件应该触发掉

What is actually happening?

一直回车,一直报错

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants