Replies: 1 comment
-
try <n-input
v-model:value="value"
:input-props="{
tabIndex: -1,
}"
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I would like to add the
readonly
attribute to n-input and prevent it from being focused using the Tab key. To achieve this, I tried settingtabindex="-1"
using:input-props="{ tabindex: -1 }"
, but it didn't work as expected.Could you please let me know the correct way to accomplish this? Additionally, are there any other recommended methods to prevent focus via the Tab key?
Please note that
disabled
attribute does not meet my requirements.Thank you in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions