mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-05-17 22:14:17 +02:00
fix: reproducible overflowlist (closes #1885)
This commit is contained in:
parent
a21f588c48
commit
9ee6fe15fd
@ -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>) => (
|
||||
|
Loading…
x
Reference in New Issue
Block a user