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

Mentions produces JavaScript error dialog in IE9 when clearing entered mentions expression too fast

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Low Low (View bug fix roadmap)
    • 5.0.5
    • None
    • None
      • IE9 on Windows 7
      • 5.0.3 (JAC)

      NOTE: This bug report is for JIRA Server. Using JIRA Cloud? See the corresponding bug report.

      • Comment on an issue
      • Start to mention someone by typing e.g. @admin
      • When the mentions bar shows up, clear the entered text fast (e.g. by using backspace) - the mentions bar will stay some time and not instantly close
      • Bug: as soon as the mention expression (@admin) is removed while the mentions bar is still visible, the error dialog pops up
      • Workaround: slowly remove the mentions expression, so that the error bar vanishes, before the @ is removed

            [JRASERVER-27996] Mentions produces JavaScript error dialog in IE9 when clearing entered mentions expression too fast

            Daz added a comment -

            The problem is to do with a lovely method called _isTrailingWitespaceNotGreaterThan(value). The lovely chap(s) who wrote it never bothered to test it, and always assumed that when it was called, there would be some input after the '@'. This isn't the case. 'tis a silly function, and I'm both fixing it and writing tests to prove it works.

            Daz added a comment - The problem is to do with a lovely method called _isTrailingWitespaceNotGreaterThan(value) . The lovely chap(s) who wrote it never bothered to test it, and always assumed that when it was called, there would be some input after the '@'. This isn't the case. 'tis a silly function, and I'm both fixing it and writing tests to prove it works.

            Daz added a comment -

            Ran in to this myself, am fixing it as we speak

            Daz added a comment - Ran in to this myself, am fixing it as we speak

              rsmart metapoint
              mmeinhold Martin Meinhold
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: