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
Accepted answer
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.

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 Thursday in Latin America

Boas vindas e apresentações!

Olá pessoal!   Sejam bem-vindos(as) ao fórum da Comunidade Atlassian! O community.atlassian é uma ferramenta para incentivar e fortalecer a comunidade Atlassian, que até então tinha s...

46 views 2 0
View post

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