Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297377

Autocomplete doesn't trigger `formUpdated`

$
0
0

Problem/Motivation

The formUpdated event isn't triggered when selecting an option from the autocomplete suggestion list. This problem only exists when using the selection dropdown, while typing in the actual textfield the event triggers nicely.

Steps to reproduce

  • Create a form with an autocomplete field of any entity.
  • Subscribe to the form's "formUpdated" event using jQuery.
  • Start typing a value in the autocomplete and select any suggested value from the list.
  • The last "formUpdated" event will be the input event, but the selected value from the suggested ones will not trigger the "formUpdated" event.

Proposed resolution

Explicitly triggering the formUpdated event from the selectHandler seems to be the most straight forward solution.

Remaining tasks

  1. Fix.
  2. Text coverage.

User interface changes

None

API changes

None

Data model changes

None


Viewing all articles
Browse latest Browse all 297377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>