Skip to content

Conversation

@bipedal-eel
Copy link

This prevents the scrollbar from flashing (Chromium) as mentionend in #5121

@bipedal-eel
Copy link
Author

bipedal-eel commented May 13, 2025

i have found the underlying issue:
image

the screenshot is console logs in render():

protected override render() { console.log("isOpen", this.isOpen) console.log("open", this.open) console.log("opening", this.isOpening) const scrollable = this.open && !(this.isAtScrollTop && this.isAtScrollBottom); console.log(scrollable) // ... }

Now, scrollable is only set when !isOpening.

const scrollable = !this.isOpening && this.open && !(this.isAtScrollTop && this.isAtScrollBottom);

I tested this a bit and as far as i can tell, this does not break anything.

If it does, an alternative soloution would be the comment you mentioned or setAttribute("opening", "") and doing:

.scrollable .scroller:not([opening]) { overflow-y: scroll; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants