From c7f14e1254b9aa4e8d435dccbf732b8f4d51f68e Mon Sep 17 00:00:00 2001 From: Dylan Phelan Date: Wed, 21 Jun 2017 17:31:12 -0400 Subject: [PATCH] Updated findDOMNode function (#892) Newer implementations of findDOMNode take the node to find as the argument, not the key of the node --- docs/reference/utils/utils.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/reference/utils/utils.md b/docs/reference/utils/utils.md index 8864df7e8..99ec5eb98 100644 --- a/docs/reference/utils/utils.md +++ b/docs/reference/utils/utils.md @@ -18,9 +18,9 @@ Utility functions that ship with Slate that may be useful for certain use cases. ## Functions ### `findDOMNode` -`findDOMNode(key: String) => DOMElement` +`findDOMNode(node : Node) => DOMElement` -Allows you to find the DOM node for a Slate [`Node`](../models/node.md) by passing its `key` string. Modelled after React's built-in `findDOMNode` helper. +Allows you to find the DOM node for a Slate [`Node`](../models/node.md). Modelled after React's built-in `findDOMNode` helper. ### `resetKeyGenerator` `resetkeygenerator() => Void`