バグ? discourse-category-banner テーマコンポーネントが時々バナーを表示しない

すごい、自分がどうかしてるのかと思ったけど、いつこれが起こるのか正確に突き止めました…

これはカテゴリバナーです。誰でも(匿名訪問者を含む)表示できるカテゴリです。サイトナビゲーションのカテゴリドロップダウンからカテゴリを選択した場合、またトピックタイトルの下にあるカテゴリラベル/ボックスをクリックした場合に、このバナーが表示されます。これはまさに期待される動作です。

しかし、グループベースのセキュリティが適用されている別のカテゴリがあります。「誰でも」このカテゴリを表示できません。このカテゴリに移動した場合(カテゴリドロップダウンから選択するか、トピックタイトルの下にあるカテゴリボックス/ラベルをクリックする)、バナーは表示されません。

ブラウザでリロードすると、バナーが表示されます。 ¯\\_(ツ)_/¯

管理者の権限でログインしています。通常のユーザー(このカテゴリの表示権限を持つグループに所属するレベル1ユーザー)になりすますと、動作は同じです。カテゴリに移動するとバナーなし。リロードするとバナーあり。

??

「いいね!」 1

I can’t reproduce this on my test site?

I’ve installed discourse-category-banners, and created a private category accessible only to a specific group (+ filled out the category ‘about’ info).

When I navigate to the private category it always shows the category banner without needing a refresh.

Is there something else that could be affecting yours? (device, browser, other theme components?)

「いいね!」 1

@craigconstantine
Same. I can confirm. Windows 10, Firefox 93

「いいね!」 1

There’s lots of stuff that could be affecting mine… but without knowing what to look for . . .

But that did make me think to inspect the actual DOM in action… when I don’t see it, the banner is present, but the SPAN is empty. Notice not twist-to-reveal for the SPAN…

Once I press reload though, now the SPAN has a child DIV etc.…

「いいね!」 1