Comments

zyxware’s picture

http://stackoverflow.com/questions/4085312/jquery-get-the-cursor-positio...

seems to suggest that you will either need browser specific code or a new jquery plugin (jcaret - http://code.google.com/p/jcaret/) to find the current cursor location.

Currently the logic used for getting the term for autocomplete is to get the content from the text box and getting all the text after the last comma (or all text if no comma)

tstoeckler’s picture

I'm pretty sure this isn't actually a regression. The following code is in Drupal 7 taxonomy_autocomplete():

  // The user enters a comma-separated list of tags. We only autocomplete the last tag.
  $tags_typed = drupal_explode_tags($tags_typed);
  $tag_last = drupal_strtolower(array_pop($tags_typed));
droplet’s picture

Wim Leers’s picture

Issue tags: +Usability

Now that we're about to release 8.0.0, I'm pretty sure we'll see complaints about this pouring in soon enough.

droplet’s picture

Status: Active » Needs work
Issue tags: +Needs manual testing
FileSize
2.29 KB

quick dirty working patch. Needs feedback on functionality.

Wim Leers’s picture

Perhaps we can get away with not fixing this until Drupal 8.1: #2346973: Replace jQuery UI autocomplete with Select2.

jacobak’s picture

I manually tested the changes on an article node. For me, the autocomplete feature worked as suggested, where going back and changing to a different tag does change the autocomplete output. Further testing could be helpful in other contexts if used there, so I will leave the needs manual testing tag. In terms of the autocomplete for tags for an article, it does seem to fix the problem or issue appropriately.

andypost’s picture

jhodgdon’s picture

Status: Needs work » Closed (duplicate)
droplet’s picture

Status: Closed (duplicate) » Needs review

I reopen this one with patch for D8.

jhodgdon’s picture

Status: Needs review » Closed (duplicate)

The other issue has been open longer (6 years) and is a Drupal 8 issue. Isn't this one a duplicate? If not, what is the difference? Please put your patch on the other issue unless there is really a difference between the two issues. As far as I can tell, they are the same issue.

droplet’s picture

No D8 jQuery UI discussion in last 4 years (6 years) of that issue. Here's we have better information. Issues Creation time isn't a good reason to close it. ( https://www.drupal.org/node/945492 )

jhodgdon’s picture

Status: Closed (duplicate) » Needs work

Oh sorry! I did not read both of them carefully to see which one should be open -- my point is just that we should only have one open. If you prefer that this one be left open, please close the other one as a duplicate and comment there that this one has a more mature/recent/better discussion and patch on it. Thanks!

Meanwhile, so this doesn't get lost, setting status back to the Needs work it was on before it got closed.

Version: 8.0.x-dev » 8.1.x-dev

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

David_Rothstein’s picture

Issue tags: +needs backport to D7

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

droplet’s picture

Issue tags: +Needs JS testing

Just confirmed this is still a bug