Clicking an attachment link works only once

(Gerhard Schlager) #1

Steps to reproduce:

Expected behavior:
Each click on the download link should start a download.

Actual behavior:
Only the first click starts a download. All subsequent click do nothing. After reloading the page the first click works again.

I’ve seen this behavior in Chrome 40 on Windows. In IE11 it seems to work as expected.
When you’re logged in this bug occurs for each download link. As visitor it affects only the first download link that you click.

This is possibly related to

(Jeff Atwood) #2

Possibly a bug for you to look at @zogstrip.

(Jens Maier) #3

For some reason, on subsequent clicks window.getSelection() includes an empty range which trips up the check in the TopicView. (Tested on Chrome 40.0.2214.93 m / Win8.1)

(Régis Hanol) #4

This should fix the issue :cat2:

(Régis Hanol) #5