feat(config): clear dns query results when input content gets cleared

This commit is contained in:
kunish 2024-10-10 23:49:42 +08:00
parent 0d109f3cb6
commit 04cae65805
No known key found for this signature in database
GPG Key ID: 647A12B4F782C430

View File

@ -76,6 +76,9 @@ const DNSQueryForm = () => {
name="name" name="name"
class="input input-bordered min-w-0 flex-1" class="input input-bordered min-w-0 flex-1"
placeholder="google.com" placeholder="google.com"
onInput={(e) => {
if (!e.target.value) setDNSQueryResult([])
}}
/> />
<div class="flex items-center gap-2"> <div class="flex items-center gap-2">