Uploaded image for project: 'Elements Connect'
  1. Elements Connect
  2. CO-3649

Field disappears while editing Connect field containing extending range unicode characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 6.1.3
    • Labels:
      None
    • Functional components:
      Runtime - Field Edition

      Description

      How to reproduce:

      • Create a Connect Live Text field "Selected issue" using Jira issue (JQL) datasource
        Empty query
        Editor: Autocomplete
        Template: {summary}
      • Add this field in a screen
      • Create an issue with summary : "İyi geceler!"
      • On an issue screen, edit "Selected issue" field and enter "ler!"

      Actual

      Field disappears and an error is displayed in Navigator console :

       Highlighter.js:23 Uncaught (in promise) DOMException: Failed to execute 'splitText' on 'Text': The offset 13 is larger than the Text node's length.
       at highlightWords (webpack:///./src/main/javascript/runtime/field/widget/impl/autocomplete/component/Highlighter.js?:23:31)
       at Array.forEach (<anonymous>)
       at Object.highlight (webpack:///./src/main/javascript/runtime/field/widget/impl/autocomplete/component/Highlighter.js?:8:33)

      Expected

      Correct characters should be highlighted during autocompletion.

      Workaround

      Use of "Select list" editor. 

       

      Attachment:

       CO3649.png is showing that highlighted characters are shifted.

      ==> "ler" is entered is field but "er!" is highlighted.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              caroline.erhart@elements-apps.com Caroline Erhart
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: