fix: handle focus-within of the forum reactions in Safari

This commit is contained in:
Paweł Pluta
2026-05-18 05:05:58 +10:00
parent 9e3bb21a69
commit 8a4b68d8ff
+1 -1
View File
@@ -157,7 +157,7 @@ final class PostUi(helpers: Helpers, bits: ForumBits):
val canActuallyReact = canReact && ctx.me.exists(me => !me.isBot && !post.isBy(me))
val allReactionsVisible =
ForumPost.Reaction.list.forall(r => (~post.reactions.flatMap(_.get(r))).nonEmpty)
div(cls := List("reactions" -> true, "reactions-auth" -> canActuallyReact))(
div(cls := List("reactions" -> true, "reactions-auth" -> canActuallyReact), tabindex := -1)(
(canActuallyReact && !allReactionsVisible).option(
button(cls := "reactions-toggle", tpe := "button", dataIcon := Icon.PlusButton)
),