Skip to content

Conversation

@felismargarita
Copy link
Contributor

when the input-number is in readonly mode, the keyboard arrow up and down still could be used. close #7112

…board arrow up & down are still could be used
@vercel
Copy link

vercel bot commented Jul 31, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
naive-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 31, 2025 2:54am

@felismargarita
Copy link
Contributor Author

@jahnli do you mind take a look at this pr? I just simply disable the keyboard action when the component is in readonly mode to resolve the issue #7112. Thanks!!

@jahnli
Copy link
Collaborator

jahnli commented Jul 31, 2025

Disabling keyboard operations in read-only mode looks fine

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

Successfully merging this pull request may close these issues.

n-input-number组件设置readonly后,依然可以使用鼠标点击获取光标,此时不能输入,但是按键盘上下键可以改变数据

3 participants