mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-28 05:30:29 +08:00
fix: prevent event propagation on button press in proxies page
This commit is contained in:
parent
b02d794092
commit
b272634c11
@ -357,7 +357,8 @@ const Proxies: React.FC = () => {
|
|||||||
variant="light"
|
variant="light"
|
||||||
size="sm"
|
size="sm"
|
||||||
isIconOnly
|
isIconOnly
|
||||||
onPress={() => {
|
onPress={(e) => {
|
||||||
|
e.stopPropagation()
|
||||||
if (!isOpen[index]) {
|
if (!isOpen[index]) {
|
||||||
setIsOpen((prev) => {
|
setIsOpen((prev) => {
|
||||||
const newOpen = [...prev]
|
const newOpen = [...prev]
|
||||||
@ -388,7 +389,8 @@ const Proxies: React.FC = () => {
|
|||||||
isLoading={delaying[index]}
|
isLoading={delaying[index]}
|
||||||
size="sm"
|
size="sm"
|
||||||
isIconOnly
|
isIconOnly
|
||||||
onPress={() => {
|
onPress={(e) => {
|
||||||
|
e.stopPropagation()
|
||||||
onGroupDelay(index)
|
onGroupDelay(index)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user