mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
fix bad caching in ReactID.getID
This commit is contained in:
committed by
Paul O’Shannessy
parent
c9ecbaccb3
commit
3266818b42
+1
-1
@@ -65,7 +65,7 @@ function setID(node, id) {
|
||||
* @internal
|
||||
*/
|
||||
function getNode(id) {
|
||||
if (!nodeCache.hasOwnProperty(id)) {
|
||||
if (!nodeCache[id]) {
|
||||
nodeCache[id] =
|
||||
document.getElementById(id) || // TODO Quit using getElementById.
|
||||
ReactMount.findReactRenderedDOMNodeSlow(id);
|
||||
|
||||
Reference in New Issue
Block a user