Defect #12650
closedLost text after selection in issue list with IE
0%
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
Related issues
Updated by Daniel Felix almost 12 years ago
- Subject changed from Strange behaviour of roadmap list to Lost text, after selection in roadmap list
Updated by Daniel Felix over 11 years ago
- 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. ;-)
Updated by Ivan Cenov over 11 years ago
I cannot reproduce.
Redmine 2.2.3
Firefox 19.0.2
Windows 7
Updated by Daniel Felix over 11 years ago
Yes, as mentioned above is this a IE related issue. ;-)
WebKit and gecko engines won't have this problem.
Updated by Daniel Felix over 11 years ago
By the way, I haven't checked it on ie 10. Will give it a try when I'm home.
Updated by Daniel Felix over 11 years ago
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.
Updated by Daniel Felix over 11 years ago
- 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
I update this.
The text is lost in every list which uses this file: source:trunk/public/javascripts/context_menu.js
I debugged this. The text gets lost after a return in this file: source:trunk/public/javascripts/jquery-1.8.3-ui-1.9.2-ujs-2.0.3.js
It seems that this problem gets huger in the latest IE version. If I ctrl+click to multiselect issues, all text of the selected items get lost.
Maybe an upgrade of jquery and jqueryui would solve this problem. This bug makes the multiselection in Internet Explorer not really useful.
Updated by Jongwook Choi over 11 years ago
Lower versions of Redmine (e.g. 2.0.x and 2.1.x) are also affected, too.
Updated by Daniel Felix over 11 years ago
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. ;-)
Updated by Daniel Ritz over 11 years ago
- File context-menu.diff context-menu.diff added
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...
Updated by Jean-Philippe Lang over 11 years ago
- 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.
Updated by Toshi MARUYAMA over 10 years ago
- Related to Defect #12710: Ticket selection removes text added
Updated by Go MAEDA over 9 years ago
- Has duplicate Defect #8783: Words selected from issue list disappeared added