fix: prevent event propagation on button clicks in Proxmox firewall view for improved interaction and functionality

This commit is contained in:
2025-12-04 13:33:08 -05:00
parent 3b291a8f26
commit 3b328bb514

View File

@@ -653,7 +653,7 @@
<span class="font-mono text-xs" x-text="rule.source ?? '-'"></span>
<template x-if="rule.source && rule.source !== '-' && window.isPublicIP(rule.source)">
<div class="relative" x-data="{ open: false, loading: false, ipData: null }" x-cloak>
<button type="button" @click="
<button type="button" @click.stop="
if (!ipData && !loading) {
loading = true;
open = true;
@@ -750,7 +750,7 @@
<span class="font-mono text-xs" x-text="rule.dest ?? '-'"></span>
<template x-if="rule.dest && rule.dest !== '-' && window.isPublicIP(rule.dest)">
<div class="relative" x-data="{ open: false, loading: false, ipData: null }" x-cloak>
<button type="button" @click="
<button type="button" @click.stop="
if (!ipData && !loading) {
loading = true;
open = true;