mirror of
https://github.com/kkebo/DNSecure.git
synced 2026-03-11 08:54:36 +00:00
fix: fix the bug where the clear button on LazyTextField doesn't work
This commit is contained in:
parent
4bbda1c4cc
commit
f2db5aa19b
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue