Skip to content
Snippets Groups Projects

most recent patch to gitlab branch

Open Ben Mullins requested to merge issue/drupal-3076171:3076171-provide-a-new into 9.3.x

Autocomplete #3076171

Edited by Ben Mullins

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
171 171 * autocomplete JavaScript library.
172 172 * - #autocomplete_route_parameters: The parameters to be used in
173 173 * conjunction with the route name.
174 * - #use-core-autocomplete: As of Drupal 9.2, jQuery UI Autocomplete is no
  • Is the change record up to date since it doesn't mention this? If it isn't, could you by any chance update it with the most recent changes to make reviewing the deprecations easier when you have time?

  • What do you think about showing deprecation warning in PHP for the Form API autocomplete use cases?

  • Author Maintainer

    This is probably a good idea, but it deviates a bit from the usual deprecation+change pattern as making this property TRUE would be necessary to not trigger the warning, but this is something only needed for Drupal 9. Do you think that would need to be clarified in the warning?

  • changed this line in version 13 of the diff

  • Author Maintainer

    I reconsidered and added this THEN re-reconsidered and removed because it's also possible to bypass the shim in templates or preprocessors with the with the data-drupal-10-autocomplete attribute - this is ultimately the attribute that is checked to determine if the shim should be added. So, not using the form API property doesn't necessarily mean the shim is going to be run. This also makes it quite easy to disable the shim for all autocompeltes via preprocess_input

        $variables['attributes']['data-drupal-10-autocomplete'] = TRUE;
      }
  • Please register or sign in to reply
  • Lauri Timmanee
  • Lauri Timmanee
  • Lauri Timmanee
  • Lauri Timmanee
  • Lauri Timmanee
  • Ben Mullins added 2 commits

    added 2 commits

    • edadb415 - Fix non-removal of shimmed focus class when focus leaves list. Restructure messages option
    • bde11396 - remove no longer needed skip deprecation message

    Compare with previous version

  • Ben Mullins added 2 commits

    added 2 commits

    • 0d4c2207 - move shim test util functions to bottom
    • 250bf8ff - remove changes to form state error handling that are probably not needed

    Compare with previous version

  • Ben Mullins added 1 commit

    added 1 commit

    • 4a3c765a - property rename, eslint tweak

    Compare with previous version

  • Ben Mullins added 1 commit

    added 1 commit

    • b83d103c - messages in subproperty doesnt work, change back

    Compare with previous version

  • Peter Weber
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Loading
  • Please register or sign in to reply
    Loading