Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-23454

Editable Halo ComboBox should not select the chosen text in textInput with "selectRange" method

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.0 (Release)
    • None
    • mx: ComboBox
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows XP
      Browser: Internet Explorer 6.x
      Language Found: English

    Description

      Steps to reproduce:

      1.Set Combobox 'editable' property to "true"

      2.Limit the width of Combobox control to fixed value, e.g 150 px.

      3.Fill the Combobox dataProvider with long text strings.

      4.Select any Combobox's option with a mouse.

      5.Select again any Combobox's option with a mouse.

      Actual Results:
      The selected text is highlighted with the selection in Combobox textInput subcontrol and the text caret is moved to the end of the text.

      Expected Results:
      The selected text should not be highlighted with the selection in Combobox textInput sub-control and the text caret should be positioned at the beginning of the text.

      Workaround (if any):

      Extend Combobox and in overrided "updateDisplayList" method reset the text selection by calling
      textInput.selectRange(0, 0);

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: