Defect #12650
closed
Lost text after selection in issue list with IE
Added by Daniel Felix almost 12 years ago.
Updated over 11 years ago.
Description
Hi there,
I just encountered some wired behaviour which is reproducible in nearly every redmine installation.
I tried this with Internet Explorer 9.0.8.
You can mark some text on the roadmap list, which instantly disappear after selection.
I attached two screenshots, to illustrate it. These screenshots are taken from redmine.org.
Maybe this is related to the context menu js.
Best regards,
Daniel
Files
- Subject changed from Strange behaviour of roadmap list to Lost text, after selection in roadmap list
- Target version set to 2.3.1
Another JS related issue.
Maybe this could be solved by upgrading to newer libraries? Can someone confirm this on its own Redmine?
Maybe this could find its way in the next bug fix release as this is sometime a little bit annoying. ;-)
I cannot reproduce.
Redmine 2.2.3
Firefox 19.0.2
Windows 7
Yes, as mentioned above is this a IE related issue. ;-)
WebKit and gecko engines won't have this problem.
By the way, I haven't checked it on ie 10. Will give it a try when I'm home.
IE 9.0.14 has this problem
I rechecked it now on IE 10. This occurs there too. So this is not a Problem of outdated Browsers like IE6, 7 & 8. It's a problem of the next generation too.
- Subject changed from Lost text, after selection in roadmap list to Lost text, after selection
- Affected version (unused) changed from 2.1.4 to 2.3.0
- Affected version changed from 2.1.4 to 2.3.0
Lower versions of Redmine (e.g. 2.0.x and 2.1.x) are also affected, too.
Jongwook Choi wrote:
Lower versions of Redmine (e.g. 2.0.x and 2.1.x) are also affected, too.
Thanks for the hint. I know this, I've set it initially to 2.1.4, but changed it to the most recent version as this still occurs there. :-)
Otherwise this one would maybe get lower priority as we thing this one is outdated. ;-)
Daniel Felix wrote:
I update this.
The text is lost in every list which uses this file: source:trunk/public/javascripts/context_menu.js
yes, that one is the problem. And this one causes it:
function contextMenuClearDocumentSelection() {
// TODO
if (document.selection) {
document.selection.clear(); // IE
} else {
window.getSelection().removeAllRanges();
}
}
The document.selection.clear()
causes the selected text to disappear. According to doc from M$:
http://msdn.microsoft.com/en-us/library/ie/ms535869%28v=vs.85%29.aspx
the clear deletes the content of the selection. Replacing it with .empty()
seems to do the trick.
I don't claim to understand what the purpose of this function is. Why? Removing the line in question completely seems no to have any negative effect...
- Subject changed from Lost text, after selection to Lost text after selection in issue list with IE
- Status changed from New to Closed
- Resolution set to Fixed
I confirmed that using .empty() fixed the issue, thanks. Committed in r11750.
The purpose of this line is to avoid the text selection to appear when selecting multiple issues at once with the shift key pressed.
- Has duplicate Defect #8783: Words selected from issue list disappeared added
Also available in: Atom
PDF