Skip to content
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

when visible list only has disabled choice (by search), press up/down throw RangeError #416

Closed
xulingling0 opened this issue Jan 4, 2023 · 0 comments

Comments

@xulingling0
Copy link
Contributor

  1. use autocomplete
 import enquirer from 'enquirer'

 const { targetAbilityName } = await enquirer.prompt({
   type: 'autocomplete',
   name: 'targetAbilityName',
   message: 'Please select the ability you want to add:',
   choices: cloneDeep(abilities)
 })
  1. default view

image

  1. search disabled choice by name

image

  1. press up/down, then throw RangeError: Maximum call stack size exceeded

image

xulingling0 added a commit to xulingling0/enquirer that referenced this issue Jan 4, 2023
xulingling0 added a commit to xulingling0/enquirer that referenced this issue Jan 4, 2023
jonschlinkert added a commit that referenced this issue Jul 26, 2023
…g-when-item-disabled

fix: #416 press up or down  will throw error when list only has disabled choice
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant