Since upgrade to Confluence 8.5 LiveSearch placeholder stopped working.

Pascal Lisot October 2, 2023

Hi all concerning the LiveSearch Macro


 

We noticed that the placeholder text is no more displayed since we upgraded from 7.19 to 8.5

Is this a know issue?

LiveSearchPlaceHolderStillvisibleIn7.19.png
LiveSearchPlaceHolderNoMore visibleIn8.5.png

Thanks in advance for your help on this.

With kind regards,

 

Pascal

3 answers

1 vote
Jörn Donneau February 6, 2024

Hello, we have the exact same answer, also reproducable in 8.6.2. I raised a support issue with Atlassian.

Cheers

Pascal Lisot February 6, 2024

Hi @Jörn Donneau 

We also warned Atlassian but no answer so far.
There's no trace in the log files whatsoever.

In the mean time we used a temporary (quick and dirty) JavaScript at page level to add the missing placeholder attribute.

Keep me posted if you have some news.
Have a nice day,

Cheers

Matthias Jupe
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 18, 2024

Hi @Pascal Lisot

Is it possible to share your preliminary (quick and dirty) JavaScript snippet?

For everyone else, this looks like the official bug issue from Atlassian:
https://jira.atlassian.com/browse/CONFSERVER-91576

Greetings,
Matthias

Pascal Lisot February 18, 2024

Hi @Matthias Jupe 

Firstly you need to Copy the JavaScript path from the html inspect properties of you input. 

You'll get something like this: 

#main-content > div > div:nth-child(2) > div > div > div > form > fieldset > div > input

Step001Get_JS_Path.PNG

Then you need to add at page level an html macro where you can add your JavaScript to set the missing placeholder attribute. 

<script>
// added by lisotpa to bypass placeholder issue in confluence 8.5
document.querySelector("

#main-content > div > div:nth-child(2) > div > div > div > form > fieldset > div > input

").setAttribute('placeholder', 'Search by keywords');
</script>

 

Hope this will help.
Cheers,

Pascal

 

0 votes
Ekran
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 1, 2023

Hello, we are having the same problem with the livesearch macro. After upgrading from 7.19.12 to 8.5.x. I have gone through the atlassian-confluence.log file, but I can't find anything that indicates that anything is wrong. The live search macro is set up restricted to @self, restrict labels: none, size: large, placeholder text: "This is a test" Content type: page, additional information: "Space name"

I have tested the page/space using the Brave browser and Firefox, both fail. Operating system: Red hat Enterprise Linux 9.

Pascal Lisot February 6, 2024

Hi @Ekran ,

Any fix so far?

Thx,

Cheers

0 votes
Bert van Dijk _TMC_nl_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 3, 2023

Hi @Pascal Lisot ,

 

The question is hard to answer. Would it be possible to share the atlassian-confluence.log from your Confluence home-dir?

If you have an active license, you also can contact support.atlassian.com with this.

Pascal Lisot October 4, 2023

Hi Bert,

Thanks for your advice we will check our log and contact Atlassian support Team.

Cheers,

 

Pascal 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events