fix hidden mselect and tn-tg checkbox state after browser back (fixes #6760)

https://stackoverflow.com/a/55927735/722291
pull/7494/head
Niklas Fiekas 2020-10-21 17:54:00 +02:00
parent e7edbd9659
commit efefe66058
2 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ object bits {
tpe := "checkbox",
cls := "mselect__toggle fullscreen-toggle",
st.id := s"mselect-$id",
autocomplete := "off",
aria.label := "Other variants"
),
label(`for` := s"mselect-$id", cls := "mselect__label")(current),

View File

@ -287,7 +287,7 @@ object layout {
private val topnavToggle = spaceless(
"""
<input type="checkbox" id="tn-tg" class="topnav-toggle fullscreen-toggle" aria-label="Navigation">
<input type="checkbox" id="tn-tg" class="topnav-toggle fullscreen-toggle" autocomplete="off" aria-label="Navigation">
<label for="tn-tg" class="fullscreen-mask"></label>
<label for="tn-tg" class="hbg"><span class="hbg__in"></span></label>"""
)