From 3f3172a190ac9b24aa5b9c695f62c3fee8273ac2 Mon Sep 17 00:00:00 2001 From: Patrice Chalin Date: Wed, 2 Aug 2023 16:10:44 -0400 Subject: [PATCH] tabpane: fix duplicate-key detection (#1638) --- layouts/shortcodes/tabpane.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/tabpane.html b/layouts/shortcodes/tabpane.html index ad58f413c7..7359da5b11 100644 --- a/layouts/shortcodes/tabpane.html +++ b/layouts/shortcodes/tabpane.html @@ -82,7 +82,7 @@ {{/* Check for duplicate tab-persistence keys */ -}} {{ if and $persistTab $persistKey -}} - {{ if in $persistKey $persistKeyList -}} + {{ if in $persistKeyList $persistKey -}} {{ $duplicate = true -}} {{ $duplicateKey = $persistKey -}} {{ $persistTab = false -}}