Skip to content

Commit

Permalink
chore: DatePicker の VRT がフレーキーになる問題を解消する (#4626)
Browse files Browse the repository at this point in the history
  • Loading branch information
s-sasaki-0529 authored May 7, 2024
1 parent daba575 commit c0096c9
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ const playExpanded = async ({ canvasElement }: { canvasElement: HTMLElement }) =
const canvas = within(canvasElement)
const textbox = await canvas.findByRole('textbox')
await textbox.focus()
await textbox.blur() // カレンダーを開くためにフォーカスするが、カーソル点滅によるフレーキーを避けるためにすぐにフォーカスを外す
}
VRTExpanded.play = playExpanded

Expand Down Expand Up @@ -105,6 +106,7 @@ VRTBottomExpanded.play = async ({ canvasElement }: { canvasElement: HTMLElement
const canvas = within(canvasElement)
const textbox = await canvas.findByRole('textbox')
await textbox.focus()
await textbox.blur() // カレンダーを開くためにフォーカスするが、カーソル点滅によるフレーキーを避けるためにすぐにフォーカスを外す
}

const WrapperList = styled.ul`
Expand Down

0 comments on commit c0096c9

Please sign in to comment.