Project

General

Profile

Actions

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.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
UI
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

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

Before.png (155 KB) Before.png before selection Daniel Felix, 2012-12-19 16:32
Selected.png (151 KB) Selected.png during selection Daniel Felix, 2012-12-19 16:32
After.png (158 KB) After.png after mouse release Daniel Felix, 2012-12-19 16:32
context-menu.diff (499 Bytes) context-menu.diff Daniel Ritz, 2013-04-18 11:42

Related issues

Related to Redmine - Defect #12710: Ticket selection removes textClosed

Actions
Has duplicate Redmine - Defect #12951: Multi-lines select by control+clicking wipes out title texts on IE8Closed

Actions
Has duplicate Redmine - Defect #8783: Words selected from issue list disappeared Closed2011-07-11

Actions
Actions #1

Updated by Daniel Felix almost 12 years ago

  • Subject changed from Strange behaviour of roadmap list to Lost text, after selection in roadmap list
Actions #2

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. ;-)

Actions #3

Updated by Ivan Cenov over 11 years ago

I cannot reproduce.
Redmine 2.2.3
Firefox 19.0.2
Windows 7

Actions #4

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.

Actions #5

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.

Actions #6

Updated by Ivan Cenov over 11 years ago

IE 9.0.14 has this problem

Actions #7

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.

Actions #8

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.

Actions #9

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.

Actions #10

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. ;-)

Actions #11

Updated by Daniel Ritz over 11 years ago

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...

Actions #12

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.

Actions #13

Updated by Toshi MARUYAMA over 10 years ago

Actions #14

Updated by Go MAEDA over 9 years ago

  • Has duplicate Defect #8783: Words selected from issue list disappeared added
Actions

Also available in: Atom PDF