mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 16:59:12 +00:00
fix(web): cant update from settings panels (#1105)
* fix(web): propagation bug with IRC network table dropdown * fix submit button not working
This commit is contained in:
parent
996519cbae
commit
3c030dc0ce
2 changed files with 46 additions and 22 deletions
|
@ -248,7 +248,13 @@ const ListItem = ({ network, expanded }: ListItemProps) => {
|
|||
"grid grid-cols-12 gap-2 lg:gap-4 items-center py-2 cursor-pointer",
|
||||
network.enabled && !network.healthy ? "bg-red-50 dark:bg-red-900 hover:bg-red-100 dark:hover:bg-red-800" : "hover:bg-gray-50 dark:hover:bg-gray-700"
|
||||
)}
|
||||
onClick={toggleEdit}
|
||||
onClick={(e) => {
|
||||
if (e.defaultPrevented)
|
||||
return;
|
||||
|
||||
e.preventDefault();
|
||||
toggleEdit();
|
||||
}}
|
||||
>
|
||||
<IrcNetworkUpdateForm
|
||||
isOpen={updateIsOpen}
|
||||
|
@ -474,7 +480,11 @@ const ListItemDropdown = ({
|
|||
return (
|
||||
<Menu
|
||||
as="div"
|
||||
onClick={(e: MouseEvent) => e.stopPropagation()}
|
||||
onClick={(e: MouseEvent) => {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
e.nativeEvent.stopImmediatePropagation();
|
||||
}}
|
||||
>
|
||||
<DeleteModal
|
||||
isOpen={deleteModalIsOpen}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue