From f2db5aa19bbbe58d52f20f8cf670f468d9102011 Mon Sep 17 00:00:00 2001 From: Kenta Kubo <601636+kkebo@users.noreply.github.com> Date: Tue, 2 Sep 2025 03:48:53 +0900 Subject: [PATCH] fix: fix the bug where the clear button on `LazyTextField` doesn't work --- DNSecure/Views/LazyTextField.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/DNSecure/Views/LazyTextField.swift b/DNSecure/Views/LazyTextField.swift index d030845..2e9a426 100644 --- a/DNSecure/Views/LazyTextField.swift +++ b/DNSecure/Views/LazyTextField.swift @@ -28,6 +28,7 @@ extension LazyTextField: View { if self.isFocused && !self.localText.isEmpty { Button("Clear", systemImage: "xmark.circle.fill") { self.text.removeAll() + self.localText.removeAll() } .foregroundStyle(Color.primary) .opacity(0.2)