From 43108cbe9336d2ef28b74d03b91ebc5d9e75d15e Mon Sep 17 00:00:00 2001 From: wangyidong Date: Thu, 15 Aug 2024 11:06:48 +0800 Subject: [PATCH] * [perf bug #53838] --- lib/zin/wg/productsbox/v1.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/zin/wg/productsbox/v1.php b/lib/zin/wg/productsbox/v1.php index ec7718df07..d85c9921ed 100644 --- a/lib/zin/wg/productsbox/v1.php +++ b/lib/zin/wg/productsbox/v1.php @@ -365,7 +365,7 @@ class productsBox extends wg set::multiple(true) ) ) : null, - $disabledProduct ? null : div + div ( setClass('pl-2 flex self-center line-btn c-actions', $i == 0 ? 'first-action' : ''), btn @@ -378,7 +378,7 @@ class productsBox extends wg ( bind::click('removeLine(event)'), setClass('btn btn-link text-gray removeLine'), - setClass($i == 0 ? 'hidden' : ''), + setClass(($i == 0 || $disabledProduct) ? 'hidden' : ''), icon('trash') ) )