Hi guys,

I don't know if I'm the only one getting this bug report from my clients but the following bug has been discovered using IE 8 (perhaps also in other browsers).

Once you are signed in, VAT number let's you autocomplete your previous entered VAT numbers on the checkout page of Ubercart.

It seems that, when the VAT field dropdown is displaying the possibilities AND a user clicks on the submit button, that the form is not submitted.

My best guess is that the Drupal Autocomplete JS hijacks the *first* click-event when displaying the autocomplete-dropdown, even if this click is not registered on the required element (being the dropdown) but on another element, for example the submit button, or even just the document.

I hope this notification serves someone as a reference-point, but I'm not completely sure if this issue should be moved to the core Drupal issue queue...

Greets,
Kim

Comments

wimh’s picture

Project: Ubercart VAT Number » Drupal core
Version: 6.x-2.x-dev » 6.22
Component: Code » ajax system

The same happens with other browsers. You need one click to have the open autocomplete window loose focus and disappear, only a second click will trigger the thing you've clicked on.

This is definitely not uc_vat_number specific, I'm moving this issue to Drupal core.

rfay’s picture

Component: ajax system » javascript

Yes, it's always been that way I think. You can easily demonstrate this on Drupal.org on the issue search place. I believe there are dups of this but don't know where right now. I don't believe d7 is any better.

shyamala’s picture

Can replicate the issue in both D6 and D7, with the authored by field. While the authored by field is active, we need to click submit twice to submit the form.

The problem persists in chrome, firefox.

If submit is clicked when the ajax request is in progress, the below error is thrown.
An AJAX HTTP request terminated abnormally.
Debugging information follows.
Path: http://localhost/D7/user/autocomplete
ResponseText:
ReadyState: 4

When the text entered does not have a valid match, i.e the content is new, in such cases the submit works on first click. The first click does not work only when there is atleast one valid response form the autocomplete field.

Another place to test the same is the tags field in article content type in D7.

shyamala’s picture

Is this issue a duplicate of http://drupal.org/node/254477

shyamala’s picture

Status: Active » Closed (duplicate)