Steps to replicate the issue (include links if applicable):
- Visit https://query.wikidata.org/
- Click somewhere outside the textbox
- Press the "e" button
What happens?:
- The Query Examples modal starts appearing, but immediately starts disappearing again
What should have happened instead?:
- It should open properly
Why it happens:
- On App.js#L400, the function that is triggered is $( 'button#open-example' ).click();. However, there are two $( 'button#open-example' ) on the page (one of them normally hidden), so both of them are clicked in quick succession, leading to the modal closing again.
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):