#TS Error - tabindex
7 messages · Page 1 of 1 (latest)
Just tried it locally. tabIndex works for me, but you have to use a number and not a string
Yeah, but it should be a string, and it won't accept -1, which has a specific meaning for focus elements
It encodes the number into a string when it renders the html, for me at least. tabIndex={-1} works for me, but not tabIndex={"-1"}. I'll look into the types and see if there's something that can be changed. I noticed that textarea only accepts numbers for it's rows and cols properties, so it might be an intentionally typed that way.
ok great thanks