I'm working on a little editor in react but in textarea
I don't want the tab button to switch to the next field.
I tried a few variations of
<textarea className={style.textarea}
required
tabIndex="-1"
type="text"
value={text}
onChange={(e) => setText(e.target.value)}
/>
without any luck. For example, I used tabindex="-1"
as well
without any luck. For example, I used tabIndex="-1"
as using an integer -1` but that also didn't work.
The desired behavior is that when I press Tab
that it'd put a literal tab in my textarea
instead of switching focus.