Mention dropdown inaccurately tracks PhantomCaret in Default Text Renderer

XMLWordPrintable

    • 9.04
    • 1
    • Severity 3 - Minor

      Issue Summary

      This is reproducible on Data Center: yes

      Steps to Reproduce

      1. Use the Text Renderer in the Description/Comment field
      2. Use the @ mention to query the dialogue for users.

      Expected Results

      A user would expect queryPhantomCaret to correctly guess the position of the cursor and provide a dropdown below the line of text currently being written.

      Actual Results

      The user mention dialogue is not offset to the next line and is in an atypical position.

      Browser console reports the following:

      TypeError: Cannot read properties of undefined (reading 'contains')
          at c.queryPhantomCaretInDOM (batch.js?_v=4bc1cab&agile_global_admin_condition=true&baseurl-check-resources=true&healthcheck-resources=true&jag=true&jaguser=true&jira.create.linked.issue=true&locale=en-AU&richediton=true:6242:346)
          at p._getMentionsOffsetTarget (batch.js?jag=true&jira.create.linked.issue=true&locale=en-AU&richediton=true:20:3784)
          at p.textarea (batch.js?jag=true&jira.create.linked.issue=true&locale=en-AU&richediton=true:20:4166)
          at n (batch.js?jag=true&jira.create.linked.issue=true&locale=en-AU&richediton=true:113:264)
          at focus (batch.js?jag=true&jira.create.linked.issue=true&locale=en-AU&richediton=true:113:424)
          at HTMLTextAreaElement.<anonymous> (batch.js?locale=en-AU:633:492)
      _getMentionsOffsetTarget @ batch.js?jag=true&jira.create.linked.issue=true&locale=en-AU&richediton=true:20

      Workaround

      Currently, there is no known workaround for this behaviour. A workaround will be added here when available

        1. usermentionsoffset.png
          214 kB
          Nicole Reichert

            Assignee:
            Unassigned
            Reporter:
            Nicole Reichert (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: