Obviously, that's because clicking a date does not fire an event on the field. Maybe that could be considered a more general views bug.

Comments

sebastien.gasser’s picture

Same problem. Maybe, it's come from the recent rewrite of autosubmit.js in ctools module.

karens’s picture

Status: Active » Postponed (maintainer needs more info)

I don't know anything about autosubmit or where it might be used. Without an example of how to create the problem on a clean install nothing will get done with this.

Juraj Maslik’s picture

As a temp workaround I would recommend:

+ $(this).blur(function(){
$(this).keyup();
});

in "case 'datepicker'" of "date_popup.js"

Does it work for you?

cedric’s picture

Instructions to reproduce:

Enable date_popup and date_views modules
Create a view with an exposed filter on a date field, using the popup widget
Check "autosubmit" in the Exposed form options

Intended behaviour: The form should auto-submit and the view refreshed when user selects a different date using the date pop-up
Actual behaviour: The form needs to be manually submitted for the refresh to occur. Autosubmit option has no effect.

cedric’s picture

The workaround in #3 works for normal mouse usage of the date-picker popup, but if you try to manually type-in a date, the form will auto-submit on key-press if you can't enter the full date fast enough and then you get invalid dates errors..

The source of the problem is auto-submit.js from ctools. I have opened a seperate issue with the ctools module to see if there would be a way to make the auto-submit work with enhanced text inputs.

See #1694988: Fix auto-submit for enhanced text text fields

guguss’s picture

It seems that there is an issue related to the auto-submit.js ! Each widget raises an error related to Drupal.behaviors.collapse library...

We'll try to work on it since we're using it for Commerce Kickstart 2.x.

guguss’s picture

Status: Needs review » Needs work

Changing the status since the steps to reproduce have been identified.

jkuma’s picture

Status: Postponed (maintainer needs more info) » Needs review

I've made a patch for ctools auto-submit.js => #1694988: Fix auto-submit for enhanced text text fields

arlinsandbulte’s picture

Status: Needs work » Closed (duplicate)

There is no patch here, so this issue should not be set to "need review."
Instead, this is seems like a duplicate of #1694988: Fix auto-submit for enhanced text text fields then....
Follow it over there.

dialn’s picture

thank you