From b5575618c2753428eaef1a5b362b74ac5f08e9c8 Mon Sep 17 00:00:00 2001 From: dlebedynskyi Date: Tue, 9 Aug 2016 13:47:48 -0400 Subject: [PATCH] fix for target missing id using https://github.com/react-toolbox/react-toolbox/issues/699 --- components/tabs/Tabs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/tabs/Tabs.js b/components/tabs/Tabs.js index e9b4c720..0db6d121 100644 --- a/components/tabs/Tabs.js +++ b/components/tabs/Tabs.js @@ -41,7 +41,7 @@ const factory = (Tab, TabContent) => { } handleHeaderClick = (event) => { - const idx = parseInt(event.target.id); + const idx = parseInt(event.currentTarget.id); if (this.props.onChange) this.props.onChange(idx); };