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