mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-12 10:14:02 +02:00
Add key for Children SelectedContext.Provider (#4480)
* Add key for Children context * add changeset
This commit is contained in:
committed by
GitHub
parent
2d1aaafa0b
commit
e51566ada8
5
.changeset/healthy-ads-trade.md
Normal file
5
.changeset/healthy-ads-trade.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'slate-react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Add key for Children SelectedContext.Provider
|
@@ -61,7 +61,7 @@ const useChildren = (props: {
|
|||||||
|
|
||||||
if (Element.isElement(n)) {
|
if (Element.isElement(n)) {
|
||||||
children.push(
|
children.push(
|
||||||
<SelectedContext.Provider value={!!sel}>
|
<SelectedContext.Provider key={`provider-${key.id}`} value={!!sel}>
|
||||||
<ElementComponent
|
<ElementComponent
|
||||||
decorations={ds}
|
decorations={ds}
|
||||||
element={n}
|
element={n}
|
||||||
|
Reference in New Issue
Block a user