diff --git a/src/fields/Select.tsx b/src/fields/Select.tsx index 815b2948e..9686416b1 100644 --- a/src/fields/Select.tsx +++ b/src/fields/Select.tsx @@ -143,7 +143,7 @@ export function Select({ return } - const divs = boxRef.current.querySelectorAll(`#${originalProps.name}-listbox div`) + const divs = boxRef.current.querySelectorAll(`[id="${originalProps.name}-listbox"] div`) const targetDiv = divs[2] /** @@ -154,7 +154,7 @@ export function Select({ */ if (targetDiv) { requestAnimationFrame(() => { - ;(targetDiv as HTMLDivElement).style.pointerEvents = 'auto' + targetDiv.style.pointerEvents = 'auto' }) } }, 300)