How can I close the trigger popup on the external click, there is a use-case in code
Here is the code.
<Trigger
action={["click"]}
popup={
<div>
<p>This is a sample code</p>
<p>
<button
onClick={() => {
// Code to close the trigger on button click
}}
>
Close trigger
</button>
</p>
</div>
}
popupAlign={{
points: ["tl", "cr"],
offset: [10, 10],
overflow: {
adjustX: 1,
adjustY: 1,
},
}}
>
Show Trigger
</Trigger>;
How can I close the trigger popup on the external click, there is a use-case in code
Here is the code.