atlassian-plugin.xml allows websections with "." in keys, but presents error on collapsed menus

Hey everybody, 

Recently I've stumbled in an issue with one of our plugins. We were getting this wierd error when using a Jira with a smaller window.

Error happens when windows forces Jira UI to collapse some menus under "More" and on mouse over a given websection, it would throw a JS error.

Uncaught TypeError: Cannot read property '_state' of null

with it's source in 

module-key = 'com.atlassian.auiplugin:internal-@atlassian-aui-src-js-aui-internal-state

The reason why is that it should find the aui-dropdown menu for this websection, but it does not render, if the key contains something like "my.plugin.web-section".

But it properly renders if key is set as "my-plugin-web-section".

No errors occur if the window is wide enough for the menu item be presented individually.

Is there some documentation for best practices on this, or have I hit a bug?

1 comment

Thanks Matt,

Your link is broken for me though =]

Comment

Log in or Sign up to comment
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

80 views 0 5
Read article

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