Autocomplete-min.js not address by workaround instructions

This question is in reference to Atlassian Documentation: Advanced Search for issues Autocomplete doesn't submit suggestion by a click with latest Chrome

This patch workaround didn't work for us... I'm wondering if it's because the AutoComplete-min.js wasn't replaced.

Are the instructions complete?

2 answers

1 accepted

This widget could not be displayed.
Timothy Chin Community Champion Dec 07, 2016

The code is supposed to remove

.bind("mousedown", function(e) {
    e.preventDefault();
});

Is that what you have in your file?

Actually, the file posted adds the code snippet you included. The diff in the kb article was backwards.

As suspected, the -min file also needs to be updated.

I'm not sure if it's supposed to be created/refreshed automatically and that's not happening. (perhaps deleting -min would cause it to be recreated).

But I manually updated the -min file to apply the same change as on the full file and after JIRA restart, the issue is fixed correctly.

Timothy Chin Community Champion Dec 07, 2016

Whoops! I stand corrected. Lol. Read it the wrong way.

Hi Peter/Timothy,

I tried the workaround from the KB and it didn't work. Could you please let me know how to fix it?

Thanks.

This widget could not be displayed.

The patch/workaround is incomplete.

The AutoComplete.js file provided doesn't fully address the issue.

Another file needs to be updated/replaced. The AutComplete-min.js

You can do that by:

  1. Shutdown JIRA
  2. Copy existing $JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/AutoComplete-min.js to AutoComplete-min.js.original

  3. Edit $JIRA_INSTALL/atlassian-jira/includes/jira/autocomplete/AutoComplete-min.js and perform the following search and replace function:
    Search for:

    .bind("click",eventData,complete)

    Replace with

    .bind("click",eventData,complete).bind("mousedown",function(e){e.preventDefault()})
    Save the file
  4. Start JIRA

This will apply the same changes that are present in the AutoComplete.js file.

Thanks @Peter-Dave Sheehan - This has help us resolve the issue. Thankyou so much you saved my day smile

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted yesterday in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

37 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you