diff --git a/html/static/js/photo-upload.js b/html/static/js/photo-upload.js
index 3759e286..0e277ed0 100644
--- a/html/static/js/photo-upload.js
+++ b/html/static/js/photo-upload.js
@@ -75,7 +75,7 @@ class PhotoUpload extends HTMLElement {
-
+
Take pictures of the mosquito problem area
@@ -88,6 +88,10 @@ class PhotoUpload extends HTMLElement {
// Set the shadow DOM content
this.shadowRoot.innerHTML = style + html;
+ this.shadowRoot.handleButtonClick = () => {
+ const photoInput = this.shadowRoot.querySelector('#photos');
+ photoInput.click();
+ };
}
/**
* Handle photo selection and preview