mirror of
				https://github.com/ZetaKebab/quartz.git
				synced 2025-11-03 22:49:47 +00:00 
			
		
		
		
	fix: reproducible overflowlist (closes #1885)
This commit is contained in:
		@@ -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>) => (
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user