Skip to content

Association field search input does not trigger results re-load #1302

Description

@ergosarapu

Version

  • Carbon Fields: 3.6.9
  • WordPress: 6.8.2
  • PHP: 8.4

Expected Behavior

Inputting search keyword into association field triggers AJAX call and loads posts

Actual Behavior

Inputting search keyword does not load posts, rendering the field useless. It seems AJAX request is not being triggered.

Container definition

CF is installed as a composer package using Bedrock WP boilerplate:

"extra": {
    "installer-paths": {
      "web/app/vendor/{$vendor}/{$name}": ["htmlburger/carbon-fields"]
    },
    "wordpress-install-dir": "web/wp"
  },

Comments

It only happens when WP_ENV has been set to "development". It works with "production" and "staging".

I tried debuging and compare JavaScript event listeners against one of the older installations with CF3.3.2/WP5.9.3 which is working as expected. It seems 'keydown' event triggers code from CF3.3.2 core.min.js properly while it doesn't trigger with CF3.6.9. Seems like event listener is not set up properly.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions