user3472360
user3472360

Reputation: 2075

Draft JS: hide the cursor

I'm trying to hide the cursor in draft-js. I want it to function as normal but the user not to be able to see the blinking cursor, is there any way of doing this in draft JS?

Upvotes: 1

Views: 323

Answers (1)

Dominic Bütow
Dominic Bütow

Reputation: 183

You can set the caret-color which is support by all modern browser nowadays: https://caniuse.com/?search=caret-color

    .public-DraftStyleDefault-block {
        caret-color: transparent;
    }

Upvotes: 1

Related Questions