Skip to content

Commit

Permalink
fixes selection-state with -webkit-user-modify
Browse files Browse the repository at this point in the history
turns out chrome (at least) would incorrectly not erase the placeholders
with -webkit-user-modify being applied where it was.
this was totally an oversight on my part not testing after taking
the lucidity designs comment in PR 509.

Testing this time in my normal suite of browsers (firefox, chrome, safari)
this commit moving the selection state to just target .public/DraftEditor/content
fixes the selection state problem.
  • Loading branch information
Eric Coan committed Jul 18, 2016
1 parent 26182e3 commit 9ffe701
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/component/base/DraftEditor.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
.public/DraftEditor/content {
height: inherit;
text-align: initial;
}

.public/DraftEditor/content {
-webkit-user-modify: read-write-plaintext-only;
user-modify: read-write-plaintext-only;
}
Expand Down

0 comments on commit 9ffe701

Please sign in to comment.