Skip to content

A live bird collage card for your Home Assistant dashboard.

Update todays_detections.php

ehpersonal380dd0ec38101b
diff --git a/scripts/todays_detections.php b/scripts/todays_detections.php
index 475e0000..1c0aba0b 100644
--- a/scripts/todays_detections.php
+++ b/scripts/todays_detections.php
@@ -169,7 +169,7 @@ if(isset($_GET['ajax_detections']) && $_GET['ajax_detections'] == "true" ) {
var timer = '';
searchterm = "";
-document.getElementById("searchterm").onkeypress = (function(e) {
+document.getElementById("searchterm").oninput = (function(e) {
if (e.key === "Enter") {
clearTimeout(timer);
searchDetections(document.getElementById("searchterm").value);