Skip to content

A live bird collage card for your Home Assistant dashboard.

Update todays_detections.php

ehpersonal385bda9373ab09
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 1c0aba0b..4b97c71d 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -173,10 +173,12 @@ document.getElementById("searchterm").oninput = (function(e) {
if (e.key === "Enter") {
clearTimeout(timer);
searchDetections(document.getElementById("searchterm").value);
+ document.getElementById("searchterm").blur();
} else {
clearTimeout(timer);
timer = setTimeout(function() {
searchDetections(document.getElementById("searchterm").value);
+ document.getElementById("searchterm").blur();
}, 1000);
}
});