prevent event bubble, open menu onhover

This commit is contained in:
ManishMadan2882
2024-07-28 19:48:48 +05:30
parent 360d790282
commit d63b5d71a1
5 changed files with 46 additions and 28 deletions

View File

@@ -1,4 +1,4 @@
import { useState } from 'react';
import { SyntheticEvent, useState } from 'react';
import { useTranslation } from 'react-i18next';
import { useSelector } from 'react-redux';
import {
@@ -117,7 +117,10 @@ export const ShareConversationModal = ({
};
return (
<div className="fixed top-0 left-0 z-30 flex h-screen w-screen items-center justify-center bg-gray-alpha bg-opacity-50 text-chinese-black dark:text-silver">
<div
onClick={(event: SyntheticEvent) => event.stopPropagation()}
className="z-100 fixed top-0 left-0 flex h-screen w-screen items-center justify-center bg-gray-alpha bg-opacity-50 text-chinese-black dark:text-silver"
>
<div className="relative w-11/12 rounded-2xl bg-white p-10 dark:bg-outer-space sm:w-[512px]">
<button className="absolute top-3 right-4 m-2 w-3" onClick={close}>
<img className="filter dark:invert" src={Exit} />