Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-29509

New Mentions auto complete doesn't play nicely when in-line editing

      When you @mention someone in the description field during an inline edit, and then select the suggestion from the dropdown using the mouse, it appears to work, but when you save the field the suggestion is lost.

      This screen capture shows the problem @jwi

            [JRASERVER-29509] New Mentions auto complete doesn't play nicely when in-line editing

            Not able to reproduce using JIRA 6.0.8 and Firefox 39.0. Might be that it was a browser-specific issue (suggested by the comment from Chris above though).

            Stefan Hett added a comment - Not able to reproduce using JIRA 6.0.8 and Firefox 39.0. Might be that it was a browser-specific issue (suggested by the comment from Chris above though).

            i would need to know if this will be fixed in 6.x ....

            Dieter Greiner added a comment - i would need to know if this will be fixed in 6.x ....

            Daz added a comment -

            The difference between keyboard and mouse is the crucial bit of information I needed. Thanks!

            This problem is a browser focus issue. It manifests because of a complicated and irritating order of operations for when fields are "blurred" and others "focused".

            What is happening here is that:

            • You press the mouse down.
            • The "blur" event is fired on the description field.
            • Inline edit closes.
              • This triggers the unbinding of all the dropdown events.
              • For each <li> in the result set: the "mouseover" and "focus" events are removed.
              • The active element is de-focused (as it is controlled by javascript).
            • The "click" event is fired on the <a> inside the dropdown.
              • There's no events bound to it any more, so it does nothing.
                • There's no longer an editable field anyway, so even if the JS was still bound, no form value would get updated.

            I'm not sure how to de-tangle this one, but there you have it.

            Daz added a comment - The difference between keyboard and mouse is the crucial bit of information I needed. Thanks! This problem is a browser focus issue. It manifests because of a complicated and irritating order of operations for when fields are "blurred" and others "focused". What is happening here is that: You press the mouse down. The "blur" event is fired on the description field. Inline edit closes. This triggers the unbinding of all the dropdown events. For each <li> in the result set: the "mouseover" and "focus" events are removed. The active element is de-focused (as it is controlled by javascript). The "click" event is fired on the <a> inside the dropdown. There's no events bound to it any more, so it does nothing. There's no longer an editable field anyway, so even if the JS was still bound, no form value would get updated. I'm not sure how to de-tangle this one, but there you have it.

            tier-0 grump added a comment - - edited

            Incidentally, it works fine if you use the keyboard to select the suggestion, it is only broken for the mouse

            tier-0 grump added a comment - - edited Incidentally, it works fine if you use the keyboard to select the suggestion, it is only broken for the mouse

            cdarroch, Didn't forget - just took forever to convert it to a format I thought would work - I'm not sure I succeeded...

            tier-0 grump added a comment - cdarroch , Didn't forget - just took forever to convert it to a format I thought would work - I'm not sure I succeeded...

            Daz added a comment -

            jwinters, I'm not seeing any attached screen capture. Did you forget to upload it?

            Daz added a comment - jwinters , I'm not seeing any attached screen capture. Did you forget to upload it?

              Unassigned Unassigned
              jwinters tier-0 grump
              Affected customers:
              1 This affects my team
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: