Skip to content

Commit

Permalink
fix(slate-react): add top css to placeholder (#5423)
Browse files Browse the repository at this point in the history
solves  #5386
  • Loading branch information
horacioh authored May 14, 2023
1 parent 9a51198 commit 042bca1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-queens-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'slate-react': patch
---

fix placeholder position in Safari 16.x
1 change: 1 addition & 0 deletions packages/slate-react/src/components/leaf.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ const Leaf = (props: {
'data-slate-placeholder': true,
style: {
position: 'absolute',
top: 0,
pointerEvents: 'none',
width: '100%',
maxWidth: '100%',
Expand Down
15 changes: 4 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5222,17 +5222,10 @@ __metadata:
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001248":
version: 1.0.30001251
resolution: "caniuse-lite@npm:1.0.30001251"
checksum: 918e1b1662c26c11291206146bc305d7fd1ca351aa9231c2e21cb1526d87b444830e2d8dc54416ebb8ecf7e0addea12d66a1c41493476229987e5e6922f0c14b
languageName: node
linkType: hard

"caniuse-lite@npm:^1.0.30001332":
version: 1.0.30001363
resolution: "caniuse-lite@npm:1.0.30001363"
checksum: 8dfcb2fa97724349cbbe61d988810bd90bfb40106a289ed6613188fa96dd1f5885c7e9924e46bb30a641bd1579ec34096fdc2b21b47d8500f8a2bfb0db069323
"caniuse-lite@npm:^1.0.30001248, caniuse-lite@npm:^1.0.30001332":
version: 1.0.30001486
resolution: "caniuse-lite@npm:1.0.30001486"
checksum: 5e8c2ba2679e4ad17dea6d2761a6449b814441bfeac81af6cc9d58af187df6af4b79b27befcbfc4a557e720b21c0399a7d1911c8705922e38938dcc0f40b5d4b
languageName: node
linkType: hard

Expand Down

0 comments on commit 042bca1

Please sign in to comment.