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

n-modal内使用n-list 和 n-input/n-input-number 无法输入问题 #6508

Open
5 tasks done
qzq0111 opened this issue Nov 1, 2024 · 4 comments
Open
5 tasks done
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction

Comments

@qzq0111
Copy link

qzq0111 commented Nov 1, 2024

描述错误

n-modal内使用n-list 和 n-input/n-input-number,会导致输入框无法输入内容,而且如果有多个输入框的情况下,依次点击输入框,点击过的输入框会同时保持聚焦状态

复现步骤

<n-modal v-model:show="modelShow">
  <n-list>
    ...
      <n-input-number />
      <n-input-number />
    ...
  </n-list>
</n-modal>

最小复现链接

(https://codesandbox.io/p/sandbox/inspiring-waterfall-nxtp48)

系统信息

"naive-ui": "2.40.1"

使用的包管理器

pnpm

验证

@qzq0111 qzq0111 added the untriaged need to sort label Nov 1, 2024
@jahnli
Copy link
Collaborator

jahnli commented Nov 1, 2024

Provide a based on CodeSandbox or stackblitz `s Minimal Reproducible Example

@qzq0111
Copy link
Author

qzq0111 commented Nov 1, 2024

@jahnli jahnli added bug Something isn't working good reproduction ✨ This issue provides a good reproduction and removed untriaged need to sort labels Nov 1, 2024
@jahnli
Copy link
Collaborator

jahnli commented Nov 1, 2024

remove n-list is normal, not sure if it is BUG, first mark it

@pengchenggang
Copy link

我也遇到这个问题了,我刚接手了一个naive 的项目,写了5分钟,就出现了不能输入的bug,最外面 n-modal 然后写了一个n-list 里面还有 n-form n-input 什么的,预览时候input不能输入,无语了。
解决方案:n-modal 里面第一个节点给一个div,就是包一层div,就都解决了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction
Projects
None yet
Development

No branches or pull requests

3 participants