fix: reproducible overflowlist (closes #1885)

This commit is contained in:
Jacky Zhao 2025-03-30 18:04:48 -07:00
parent a21f588c48
commit 9ee6fe15fd

View file

@ -1,5 +1,4 @@
import { JSX } from "preact"
import { randomIdNonSecure } from "../util/random"
const OverflowList = ({
children,
@ -13,8 +12,10 @@ const OverflowList = ({
)
}
let numExplorers = 0
export default () => {
const id = randomIdNonSecure()
const id = `list-${numExplorers++}`
console.log(id)
return {
OverflowList: (props: JSX.HTMLAttributes<HTMLUListElement>) => (