mirror of
https://gh.catmak.name/https://github.com/mihomo-party-org/mihomo-party
synced 2025-12-27 05:00:30 +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"
|
||||
size="sm"
|
||||
isIconOnly
|
||||
onPress={() => {
|
||||
onPress={(e) => {
|
||||
e.stopPropagation()
|
||||
if (!isOpen[index]) {
|
||||
setIsOpen((prev) => {
|
||||
const newOpen = [...prev]
|
||||
@ -388,7 +389,8 @@ const Proxies: React.FC = () => {
|
||||
isLoading={delaying[index]}
|
||||
size="sm"
|
||||
isIconOnly
|
||||
onPress={() => {
|
||||
onPress={(e) => {
|
||||
e.stopPropagation()
|
||||
onGroupDelay(index)
|
||||
}}
|
||||
>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user