From 6fbe9b3894fcf744f9bd19e0554b156a5ca77aa6 Mon Sep 17 00:00:00 2001 From: Michael Camden Date: Fri, 15 Apr 2016 15:25:21 -0400 Subject: [PATCH 1/2] Resolve issue 102 by testing both component and its instance (#103) --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index a5f9140..050f2d0 100644 --- a/lib/index.js +++ b/lib/index.js @@ -118,7 +118,7 @@ var logWarning = (component, failureInfo, options) => { console.warn.apply(console, warning); }; - if (includeSrcNode && component) + if (includeSrcNode && component && component._instance) // Cannot log a node reference until the component is in the DOM, // so defer the document.getElementById call until componentDidMount // or componentDidUpdate. From 64fe62cfd03f9bbd044560034f859c35296b9fed Mon Sep 17 00:00:00 2001 From: Stephen Wyatt Bush Date: Fri, 15 Apr 2016 12:32:24 -0700 Subject: [PATCH 2/2] release v0.3.3 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6aa38e4..81dccea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +v0.3.3 - Fri, 15 Apr 2016 19:32:24 GMT +-------------------------------------- + +- + + v0.3.2 - Tue, 15 Mar 2016 00:16:50 GMT -------------------------------------- diff --git a/package.json b/package.json index 5c0061e..b302b37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-a11y", - "version": "0.3.2", + "version": "0.3.3", "description": "Warns about potential accessibility issues with your React elements.", "main": "./dist/index.js", "repository": {