I am currently experiencing an issue with the WPML language switcher block used inside a navigation menu.
The setup is similar to several other projects where I use GeneratePress and GenerateBlocks, and where the language switcher behaves correctly. However, in this specific case, the dropdown is rendered as expanded on page load, with aria-expanded="true" already set in the initial HTML.
This only occurs when the switcher is configured to open on click. When set to open on hover, it initializes correctly in a collapsed state.
I have verified that:
I am running the latest version of WordPress
I am running the latest version of WPML and its related components
There are no obvious JavaScript errors in the console
Could you please advise whether there is a configuration or known compatibility issue that could cause the dropdown to initialize as expanded?
I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)
**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **
I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.
NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.