Skip to content

Commit 0b65b1c

Browse files
committed
fix: normalize tag name comparison
1 parent 0e0f186 commit 0b65b1c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

js/markdown-stream/markdown-stream.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ class MarkdownElement extends LightElement {
284284
while (el) {
285285
if (el.scrollHeight > el.clientHeight) return el;
286286
el = el.parentElement;
287-
if (el?.tagName === CHAT_CONTAINER_TAG) {
287+
if (el?.tagName?.toLowerCase() === CHAT_CONTAINER_TAG.toLowerCase()) {
288288
// This ensures that we do not accidentally scroll a parent element of the chat
289289
// container. If the chat container itself is scrollable, a scrollable element
290290
// would already have been identified.

shiny/www/py-shiny/markdown-stream/markdown-stream.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

shiny/www/py-shiny/markdown-stream/markdown-stream.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)