diff --git a/core/wiki/macros/toc.tid b/core/wiki/macros/toc.tid
index 3e6a1b300..477e0385e 100644
--- a/core/wiki/macros/toc.tid
+++ b/core/wiki/macros/toc.tid
@@ -37,12 +37,12 @@ tags: $:/tags/Macro
>>
<$link>
<$reveal type="nomatch" state=<> text="open">
- <$button set=<> setTo="open" class="tc-btn-invisible">
+ <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/right-arrow}}
$button>
$reveal>
<$reveal type="match" state=<> text="open">
- <$button set=<> setTo="close" class="tc-btn-invisible">
+ <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/down-arrow}}
$button>
$reveal>
@@ -62,13 +62,13 @@ tags: $:/tags/Macro
<$set name="toc-item-class" filter="""$itemClassFilter$""" emptyValue="toc-item" value="toc-item-selected">
>>
<$reveal type="nomatch" state=<> text="open">
- <$button set=<> setTo="open" class="tc-btn-invisible">
+ <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/right-arrow}}
<>
$button>
$reveal>
<$reveal type="match" state=<> text="open">
- <$button set=<> setTo="close" class="tc-btn-invisible">
+ <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/down-arrow}}
<>
$button>
@@ -104,12 +104,12 @@ tags: $:/tags/Macro
<$link>
<$list filter="[all[current]tagging[]limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}$button>">
<$reveal type="nomatch" state=<> text="open">
- <$button set=<> setTo="open" class="tc-btn-invisible">
+ <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/right-arrow}}
$button>
$reveal>
<$reveal type="match" state=<> text="open">
- <$button set=<> setTo="close" class="tc-btn-invisible">
+ <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/down-arrow}}
$button>
$reveal>
@@ -130,13 +130,13 @@ tags: $:/tags/Macro
>>
<$list filter="[all[current]tagging[]limit[1]]" variable="ignore" emptyMessage="<$button class='tc-btn-invisible'>{{$:/core/images/blank}}$button> <$view field='caption'><$view field='title'/>$view>">
<$reveal type="nomatch" state=<> text="open">
- <$button set=<> setTo="open" class="tc-btn-invisible">
+ <$button set=<> setTo="open" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/right-arrow}}
<>
$button>
$reveal>
<$reveal type="match" state=<> text="open">
- <$button set=<> setTo="close" class="tc-btn-invisible">
+ <$button set=<> setTo="close" class="tc-btn-invisible tc-popup-keep">
{{$:/core/images/down-arrow}}
<>
$button>