AfterClass-io / afterclass.io-v2

[alpha] v2 of https://afterclass.io!
https://afterclass-io.vercel.app
MIT License
4 stars 2 forks source link

[BUG] autofocus on close button of review's modal #169

Open Jaylin0312 opened 3 weeks ago

Jaylin0312 commented 3 weeks ago

Describe the bug

When a review modal appears, the close button seems to be focused automatically, which is not intentional

To Reproduce

  1. Go to https://afterclass-io.vercel.app/ and log in
  2. Click on one of the reviews, a modal should be observed
  3. The close button is focused automatically

Expected behavior

There should not be any focus on the close button by default

Screenshots

https://github.com/AfterClass-io/afterclass.io-v2/assets/68802506/332cd289-9f93-448b-88fa-6dc61ddf2b10

Desktop