From 3a02b6ff9a7cd8c0246550aa35123dbcf8b44b9d Mon Sep 17 00:00:00 2001 From: davidmarkclements Date: Mon, 4 Jan 2016 11:06:02 +0000 Subject: [PATCH] update _currentElement to nextElement to trigger correct event handlers --- src/ReactBlessedComponent.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ReactBlessedComponent.js b/src/ReactBlessedComponent.js index d705716..914afaa 100644 --- a/src/ReactBlessedComponent.js +++ b/src/ReactBlessedComponent.js @@ -132,6 +132,10 @@ export default class ReactBlessedComponent { node = ReactBlessedIDOperations.get(this._rootNodeID); update(node, solveClass(options)); + + if (this._currentElement !== nextElement) { + this._currentElement = nextElement + } // Updating children const childrenToUse = children === null ? [] : [].concat(children);