It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

0 votes
Answer accepted
Timothy Community Leader 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 Community Leader 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.

2 votes

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
TAGS

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you