- Status changed to Needs work
over 1 year ago 8:23am 19 April 2023 - πΈπ°Slovakia coaston
Found issue - ajax for exposed filters does not work after I applied this patch.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 4:58pm 23 May 2023 - πΊπΈUnited States attheshow
This seems to be working pretty well for us. We changed the timeout from 0.5 seconds to 2.5 seconds. Attaching an updated patch.
- πΊπΈUnited States attheshow
We were also having issues with the autosubmit timing in relation to date fields. I've updated the patch to also include the 2.5 second timeout on to date fields. This patch goes along with the latest dev version.
- πΊπΈUnited States attheshow
After a bit more testing with the previous patch, it looks like this method disables clicking on the browser's calendar icon to update the value of the date field (or at least the autosubmit doesn't happen when that method is used rather than typing in the date field). I'll keep working to try to get a patch that works with either scenario on a date field.
- πΊπΈUnited States attheshow
Adding updated patch which adds a fallback to watch for changes when text/date fields are used. This seems to work when either text is being typed in OR if the user is using the built-in browser date picker on a date field.
- πΊπΈUnited States attheshow
This patch ensures that the 2.5 second delay/timeout is used for all fields and not just text type fields.
- πΊπΈUnited States attheshow
I'm adding an adjusted timeout patch for Views Autosubmit selects. Ensures that all selections are made before the timeout occurs.
- @saidatom opened merge request.
- πΊπΈUnited States attheshow
Updated patch to not include indentation changes.
- πΊπΈUnited States charlyp805
Patch #25 works. Would you please add the patch to the next release?
- πΊπΈUnited States attheshow
I was seeing an error on our site with date fields using patch 27 so I've attached an updated version that fixes that issue.
- πΈπ°Slovakia coaston
Well for the Grouped filters (Exposed) this create an issue because it takes 2.5 seconds to load results with Ajax so user can think that there are 0 results and choose another option.
This problem is connected with 3351448 issue which brings ability to configure timeout as per need. For text field you can configure 2500 if needed , but for filters 500ms is good enough.
So I would suggest to connect both patch together and create one which works for both so instead of :
-timeoutID = setTimeout($.proxy(triggerSubmit, this.form), 2500); +timeoutID = setTimeout($.proxy(triggerSubmit, this.form), drupalSettings.views_autosubmit.timeout);
as described in 3351448
- πΊπ¦Ukraine i-trokhanenko Lutsk πΊπ¦
I would process with configurable timeout value for text fields π Configurable timeout value for textfields Fixed It's more flexible I think.
I've pushed the MR that provides this functionality to the dev branch, see the diff below: https://git.drupalcode.org/project/views_autosubmit/-/commit/274ae5df14f...
Let's keep this open and see if the community has any additional thoughts/recommendations.
- Status changed to Needs work
5 months ago 4:16pm 26 July 2024 - πΊπΈUnited States attheshow
Thanks for that update! Unfortunately when testing the dev version, it looks like select fields are no longer triggering the autosubmit. Is anyone else experiencing this when using the latest dev?