fix: reproducible overflowlist (closes #1885)
This commit is contained in:
parent
a21f588c48
commit
9ee6fe15fd
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
import { JSX } from "preact"
|
import { JSX } from "preact"
|
||||||
import { randomIdNonSecure } from "../util/random"
|
|
||||||
|
|
||||||
const OverflowList = ({
|
const OverflowList = ({
|
||||||
children,
|
children,
|
||||||
|
@ -13,8 +12,10 @@ const OverflowList = ({
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let numExplorers = 0
|
||||||
export default () => {
|
export default () => {
|
||||||
const id = randomIdNonSecure()
|
const id = `list-${numExplorers++}`
|
||||||
|
console.log(id)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
OverflowList: (props: JSX.HTMLAttributes<HTMLUListElement>) => (
|
OverflowList: (props: JSX.HTMLAttributes<HTMLUListElement>) => (
|
||||||
|
|
Loading…
Add table
Reference in a new issue