diff --git a/idr_gallery/static/idr_gallery/omero_search_form.js b/idr_gallery/static/idr_gallery/omero_search_form.js index cd212f14..06c678c7 100644 --- a/idr_gallery/static/idr_gallery/omero_search_form.js +++ b/idr_gallery/static/idr_gallery/omero_search_form.js @@ -329,6 +329,12 @@ class OmeroSearchForm { this.$form.html(`
`); this.$form.append($(FORM_FOOTER_HTML)); + // disable default form submission behaviour + // NB: Only needed on Safari + this.$form.on("submit", (event) => { + event.preventDefault(); + }) + // If resultsId, create results element... if (resultsId) { this.$results = $(`#${resultsId}`);