From d6207483175f4ac678d423f28caa8050d6a9c383 Mon Sep 17 00:00:00 2001 From: Tessa Kelly Date: Tue, 9 Jun 2020 17:59:56 -0700 Subject: [PATCH] Make sure to tabtoid the idstring --- src/Nri/Ui/Tabs/V5.elm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Nri/Ui/Tabs/V5.elm b/src/Nri/Ui/Tabs/V5.elm index d890331c..bfa1f6fa 100644 --- a/src/Nri/Ui/Tabs/V5.elm +++ b/src/Nri/Ui/Tabs/V5.elm @@ -226,7 +226,7 @@ keyEvents onFocus tabs thisTab keyCode = acc ( True, Nothing ) -> - ( True, Just tab ) + ( True, Just (tabToId tab.idString) ) ( False, Nothing ) -> ( tab.id == thisTab.id, Nothing ) @@ -244,7 +244,7 @@ keyEvents onFocus tabs thisTab keyCode = -- Right case nextTab of Just next -> - Json.Decode.succeed (onFocus next.idString) + Json.Decode.succeed (onFocus next) Nothing -> Json.Decode.fail "No next tab" @@ -253,7 +253,7 @@ keyEvents onFocus tabs thisTab keyCode = -- Left case previousTab of Just previous -> - Json.Decode.succeed (onFocus previous.idString) + Json.Decode.succeed (onFocus previous) Nothing -> Json.Decode.fail "No previous tab"