Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c64a65 commit 046cd79Copy full SHA for 046cd79
src/components/modal/ListModal.tsx
@@ -28,7 +28,10 @@ export default function ListModal({
28
className="fixed inset-0 transition-opacity"
29
aria-hidden="true"
30
>
31
- <div className="absolute inset-0 bg-gray-500 opacity-75"></div>
+ <div
32
+ className="absolute inset-0 bg-gray-500 opacity-75"
33
+ onClick={() => setIsOpen(false)}
34
+ ></div>
35
</Transition>
36
37
{/* This element is to trick the browser into centering the modal contents. */}
0 commit comments